Code

* packaging/macosx/ScriptExec/main.c:
[inkscape.git] / packaging / macosx / ScriptExec / main.c
index 95092ee349a73c5505cafe20ad366ab7af284f92..979d850572b6983c6a0cb085d05b5c8f715e5d0d 100644 (file)
@@ -198,7 +198,7 @@ static OSStatus FCCacheFailedHandler(EventHandlerCallRef theHandlerCall,
 
                        StandardAlert(kAlertNoteAlert, "\pFont caches have been updated",
                                        "\pPlease re-run Inkscape.", &params, &itemHit);
-                       system("test -d $HOME/.inkscape || mkdir $HOME/.inkscape; touch $HOME/.inkscape/.fccache");
+                       system("test -d \"$HOME/.inkscape\" || mkdir \"$HOME/.inkscape\"; touch \"$HOME/.inkscape/.fccache\"");
                }
        }
        else
@@ -208,7 +208,7 @@ static OSStatus FCCacheFailedHandler(EventHandlerCallRef theHandlerCall,
 
                StandardAlert(kAlertNoteAlert, "\pFont caches have not been updated",
                                "\pThey can be updated manually by running the following:\n   sudo /usr/X11R6/bin/fc-cache -f\nOnce you have dealt with this, please re-run Inkscape.", &params, &itemHit);
-               system("test -d $HOME/.inkscape || mkdir $HOME/.inkscape; touch $HOME/.inkscape/.fccache");
+               system("test -d \"$HOME/.inkscape\" || mkdir \"$HOME/.inkscape\"; touch \"$HOME/.inkscape/.fccache\"");
        }
     
        ExitToShell();