From 5ddd98941c6756e6f005558d33df7bd2db408f05 Mon Sep 17 00:00:00 2001 From: mjwybrow Date: Tue, 27 Jun 2006 00:30:11 +0000 Subject: * packaging/macosx/ScriptExec/main.c: Add some quotes to fix a problem for people on OS X with spaces in their home directory path. Fixes bug #1512019. (bzr r1301) --- packaging/macosx/ScriptExec/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packaging/macosx/ScriptExec') diff --git a/packaging/macosx/ScriptExec/main.c b/packaging/macosx/ScriptExec/main.c index 95092ee34..979d85057 100644 --- a/packaging/macosx/ScriptExec/main.c +++ b/packaging/macosx/ScriptExec/main.c @@ -198,7 +198,7 @@ static OSStatus FCCacheFailedHandler(EventHandlerCallRef theHandlerCall, StandardAlert(kAlertNoteAlert, "\pFont caches have been updated", "\pPlease re-run Inkscape.", ¶ms, &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.", ¶ms, &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(); -- cgit v1.2.3