summaryrefslogtreecommitdiff
path: root/addon
diff options
context:
space:
mode:
authorluccioman <luccioman@users.noreply.github.com>2016-09-02 11:22:39 +0200
committerluccioman <luccioman@users.noreply.github.com>2016-09-02 11:22:39 +0200
commitf3f478448bab001849d3d621c159a2a0de8758cc (patch)
tree28a7ca0bdd9c9262d5d0577b0816be3489dbe82d /addon
parent7c0f1106a6d2d9de0aded56f783d0eb065c575c9 (diff)
Explicitely set YaCy data folder when starting in MacOS bundle
Diffstat (limited to 'addon')
-rw-r--r--addon/YaCy.app/Contents/Info.plist2
-rwxr-xr-xaddon/YaCy.app/Contents/MacOS/startYACYMacOS.sh8
2 files changed, 9 insertions, 1 deletions
diff --git a/addon/YaCy.app/Contents/Info.plist b/addon/YaCy.app/Contents/Info.plist
index 69804aa9f..5f772f193 100644
--- a/addon/YaCy.app/Contents/Info.plist
+++ b/addon/YaCy.app/Contents/Info.plist
@@ -19,7 +19,7 @@
<key>CFBundleAllowMixedLocalizations</key>
<string>true</string>
<key>CFBundleExecutable</key>
-<string>startYACY.sh</string>
+<string>startYACYMacOS.sh</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundlePackageType</key>
diff --git a/addon/YaCy.app/Contents/MacOS/startYACYMacOS.sh b/addon/YaCy.app/Contents/MacOS/startYACYMacOS.sh
new file mode 100755
index 000000000..456ddea4e
--- /dev/null
+++ b/addon/YaCy.app/Contents/MacOS/startYACYMacOS.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env sh
+
+# Launcher for YaCy in a MacOS bundle :
+# rely on the generic startYACY.sh, but specifies the user home relative path for YaCy data
+# This data directory is set in conforming to OS X File System Programming Guide
+# see : https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/MacOSXDirectories/MacOSXDirectories.html
+
+"`dirname $0`"/startYACY.sh -startup "'Library/Application Support/net.yacy.YaCy'"