Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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