blob: 2de0c15088df22806dd64909529a24ed2e76bdb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
#!/bin/sh
sugardatadir=@prefix@/share/sugar/data
if [ "$(id -u)" -eq 0 -o "$(id -ru)" -eq 0 ] ; then
echo Refusing to run as root.
exit 3
fi
# 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
if test -z "$SUGAR_MIME_DEFAULTS"; then
export SUGAR_MIME_DEFAULTS="$sugardatadir/mime.defaults"
fi
if test -z "$SUGAR_ACTIVITIES_DEFAULTS"; then
export SUGAR_ACTIVITIES_DEFAULTS="$sugardatadir/activities.defaults"
fi
export GTK2_RC_FILES="@prefix@/share/sugar/data/sugar-$SUGAR_SCALING.gtkrc"
if ! test -f "$GTK2_RC_FILES"; then
echo "sugar: ERROR: Gtk theme for scaling $SUGAR_SCALING not available in path $GTK2_RC_FILES"
exit 1
fi
# Set default language
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
fi
if [ -f ~/.sugar/debug ]; then
. ~/.sugar/debug
fi
echo Xcursor.theme: sugar | xrdb -merge
metacity --no-force-fullscreen -d $DISPLAY &
exec python -m jarabe.main
|