From 88f6c3be0abff5144b8965523de3884df2d2bd48 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Tue, 03 Aug 2010 09:40:16 +0000 Subject: Set the accounts dir for Mission Control inside Sugar's profile dir. Also makes sure that SUGAR_PROFILE is set. --- 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 -- cgit v0.9.1