From 2fc675086781161c24a6777d351c8687c5cc42f0 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sat, 25 Apr 2015 16:44:23 -0700 Subject: [PATCH] Use MSWin environment variables USERPROFILE and APPDATA. Instead of GRAMPSHOME. GRAMPSHOME is based on the assumption that the config directory is GRAMPSHOME/gramps, and that causes the default location for reports and backups to be ~/Library/Application Support. The MSWin variables allow the two to be separated. Thanks to Tim Lyons for the suggestion. (cherry picked from commit c11c63169f08495e8f03d7bb1aefc8ce5b3d6d5a) --- mac/gramps.launcher | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mac/gramps.launcher b/mac/gramps.launcher index 55010a553..dcf687e2e 100755 --- a/mac/gramps.launcher +++ b/mac/gramps.launcher @@ -40,7 +40,8 @@ export PYTHONPATH="$bundle_lib/python$PYVER/site-packages/gtk-2.0:$PYTHONPATH" export GRAMPSDIR="$bundle_data"/gramps export GRAMPSI18N="$bundle_data"/locale -export GRAMPSHOME="$HOME/Library/Application Support" +export USERPROFILE="$HOME" +export APPDATA="$HOME/Library/Application Support" # Strip out the argument added by the OS. if /bin/expr "x$1" : '^x-psn_' > /dev/null; then