A fork of the Materia GTK theme.

Important information: Google announced that, from September 2026, Android devices will require ALL apps to be signed by Google, effectively leading to an iOS situation. Value your right to a computer that does what you want; do not tolerate this monopolistic practice! Contact me if you don't understand why it is bad. Click to learn more.

fix(gtk{2,3}: render_asset): case when inkscape is not installed

by roundabout, Thursday, 27 February 2020, 03:03:40 (1582772620), pushed by roundabout, Sunday, 11 May 2025, 13:22:47 (1746969767)

Author identity: Yauhen Kirylau <actionless.loveless@gmail.com>

1108f32bab1abd9ab757ce9c4cdb793208316e24

src/gtk-2.0/render-asset.sh

@@ -5,12 +5,6 @@ RENDER_SVG="$(command -v rendersvg)" || true

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            INKSCAPE="$(command -v inkscape)" || true
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            OPTIPNG="$(command -v optipng)" || true
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        if "$INKSCAPE" --help | grep -e "--export-png" > /dev/null; then
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          EXPORT_FILE_OPTION="--export-png"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        else
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          EXPORT_FILE_OPTION="--export-file"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        fi
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            if [[ "$1" == "dark" ]]; then
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              SRC_FILE="assets-dark.svg"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              ASSETS_DIR="assets-dark"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        

@@ -39,6 +33,11 @@ if [[ -n "${RENDER_SVG}" ]]; then

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                            --zoom ${ZOOM} \
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                            "$SRC_FILE" "$ASSETS_DIR/$i.png"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            else
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          if "$INKSCAPE" --help | grep -e "--export-png" > /dev/null; then
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            EXPORT_FILE_OPTION="--export-png"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          else
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            EXPORT_FILE_OPTION="--export-file"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          fi
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              "$INKSCAPE" --export-id="$i" \
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                          --export-id-only \
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                          --export-dpi=${DPI} \
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

src/gtk/render-asset.sh

@@ -5,10 +5,12 @@ RENDER_SVG="$(command -v rendersvg)" || true

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            INKSCAPE="$(command -v inkscape)" || true
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            OPTIPNG="$(command -v optipng)" || true
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        if "$INKSCAPE" --help | grep -e "--export-png" > /dev/null; then
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          EXPORT_FILE_OPTION="--export-png"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        else
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          EXPORT_FILE_OPTION="--export-file"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        if [ -n "$INKSCAPE" ] ; then
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          if "$INKSCAPE" --help | grep -e "--export-png" > /dev/null; then
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            EXPORT_FILE_OPTION="--export-png"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          else
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            EXPORT_FILE_OPTION="--export-file"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          fi
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            fi
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            SRC_FILE="assets.svg"