Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bin/sugar.in
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sugar.in')
-rw-r--r--bin/sugar.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/sugar.in b/bin/sugar.in
index 898bd59..12098db 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,15 @@ 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
+
+# Workaround until gnome-keyring-daemon lets dbus activate it
+# https://bugzilla.gnome.org/show_bug.cgi?id=628302
+if test "$SUGAR_EMULATOR" = "yes" -a "$(type gnome-keyring-daemon)"; then
+ gnome-keyring-daemon --components=secrets &
+fi
+
# Source language settings and debug definitions
if [ -f ~/.i18n ]; then
. ~/.i18n