Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.co.uk>2010-08-03 09:40:16 (GMT)
committer Tomeu Vizoso <tomeu.vizoso@collabora.co.uk>2010-08-20 13:02:27 (GMT)
commit88f6c3be0abff5144b8965523de3884df2d2bd48 (patch)
treea9ee22e2c53cf0226e623bf4640af83ead28d836
parentef45d2946f45ebfd3c50154b74c2b53b936724a9 (diff)
Set the accounts dir for Mission Control inside Sugar's profile dir.
Also makes sure that SUGAR_PROFILE is set.
-rw-r--r--bin/sugar.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/sugar.in b/bin/sugar.in
index 898bd59..2df0ab8 100644
--- a/bin/sugar.in
+++ b/bin/sugar.in
@@ -36,6 +36,11 @@ while [ $# -ne 0 ] ; do
shift
done
+# Set default profile dir
+if test -z "$SUGAR_PROFILE"; then
+ export SUGAR_PROFILE=default
+fi
+
if test -z "$SUGAR_SCALING"; then
export SUGAR_SCALING=72
fi
@@ -54,6 +59,9 @@ fi
export LANG="${LANG:-en_US.utf8}"
export LANGUAGE="${LANGUAGE:-${LANG}}"
+# Set Sugar's telepathy accounts directory
+export MC_ACCOUNT_DIR=$HOME/.sugar/$SUGAR_PROFILE/accounts
+
# Source language settings and debug definitions
if [ -f ~/.i18n ]; then
. ~/.i18n