From 08c216563001beb88226d75384e7436c81a5d70e Mon Sep 17 00:00:00 2001 From: su_v Date: Wed, 20 Aug 2014 15:06:40 +0200 Subject: use $XDG_CACHE_HOME/inkscape instead of ~/.inkscape-etc for generated rc and loader cache files (bzr r13506.1.23) --- packaging/macosx/ScriptExec/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'packaging/macosx/ScriptExec') 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(); -- cgit v1.2.3