summaryrefslogtreecommitdiffstats
path: root/packaging/macosx/ScriptExec
diff options
context:
space:
mode:
authorsu_v <suv-sf@users.sourceforge.net>2014-08-20 13:06:40 +0000
committer~suv <suv-sf@users.sourceforge.net>2014-08-20 13:06:40 +0000
commit08c216563001beb88226d75384e7436c81a5d70e (patch)
tree6a0c52e5de3efffe5e689432310feb9ac3b0bd5e /packaging/macosx/ScriptExec
parentprepare to use XDG Base Directory Specification for user files (diff)
downloadinkscape-08c216563001beb88226d75384e7436c81a5d70e.tar.gz
inkscape-08c216563001beb88226d75384e7436c81a5d70e.zip
use $XDG_CACHE_HOME/inkscape instead of ~/.inkscape-etc for generated rc and loader cache files
(bzr r13506.1.23)
Diffstat (limited to 'packaging/macosx/ScriptExec')
-rw-r--r--packaging/macosx/ScriptExec/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/packaging/macosx/ScriptExec/main.c b/packaging/macosx/ScriptExec/main.c
index 0e4efd4e8..37b3a4ff3 100644
--- a/packaging/macosx/ScriptExec/main.c
+++ b/packaging/macosx/ScriptExec/main.c
@@ -241,8 +241,9 @@ static OSStatus FCCacheFailedHandler(EventHandlerCallRef theHandlerCall,
ShowFirstStartWarningDialog();
// Note that we've seen the warning.
- system("test -d \"$HOME/.inkscape-etc\" || mkdir -p \"$HOME/.inkscape-etc\"; "
- "touch \"$HOME/.inkscape-etc/.fccache-new\"");
+ // TODO: somehow make this aware of $XDG_CACHE_HOME as set in the launcher
+ system("test -d \"$HOME/.cache/inkscape\" || mkdir -p \"$HOME/.cache/inkscape\"; "
+ "touch \"$HOME/.cache/inkscape/.fccache-new\"");
// Rerun now.
OSErr err = ExecuteScript(scriptPath, &pid);
ExitToShell();