diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-07 14:01:34 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@laptop.org> | 2013-01-22 09:03:16 (GMT) |
commit | 86759e4ebd1aa506a536854156f978e38eac22a0 (patch) | |
tree | e1bc3a4f492b60d1d12c85c6f9f864ca9b30a969 /bin | |
parent | a1af468373c982cb9a87ea6564c293b71306664b (diff) |
Env variables for mime and activities defaults
These are necessary for unit tests because we cannot assume
they are installed in the system. Also config.py is not
generated inside the jarabe package directory when building
out-of-source, so trying to import it fails
They might be used for customization too.
Acked-by: Simon Schampijer <simon@laptop.org>
Diffstat (limited to 'bin')
-rw-r--r-- | bin/sugar.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/sugar.in b/bin/sugar.in index 2df0ab8..e7cb068 100644 --- a/bin/sugar.in +++ b/bin/sugar.in @@ -1,5 +1,7 @@ #!/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 @@ -45,6 +47,14 @@ 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" # Needed for executing wpa_passphrase |