diff options
author | Simon Schampijer <simon@schampijer.de> | 2009-01-16 12:45:49 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2009-01-16 12:45:49 (GMT) |
commit | 653de31eed0619c0e7356c45d8932ac4c9574fc5 (patch) | |
tree | 3742350dcb43132cf1d21b9c6f873e834282124d | |
parent | bfebb2d703dd44a382f46f7feaf59d17fa0aaa9a (diff) |
separate debug settings from xsession #163
- source the debug options in the sugar executable
- create ~/.sugar/debug file on profile creation where
one can customize the debug options
-rw-r--r-- | bin/sugar.in | 5 | ||||
-rw-r--r-- | src/jarabe/intro/__init__.py | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/bin/sugar.in b/bin/sugar.in index af7f6b2..ba49358 100644 --- a/bin/sugar.in +++ b/bin/sugar.in @@ -11,6 +11,11 @@ if ! test -f "$GTK2_RC_FILES"; then exit 1 fi +# Source debug definitions +if [ -f ~/.sugar/debug ]; then + . ~/.sugar/debug +fi + matchbox-window-manager -use_titlebar no -theme sugar \ -kbdconfig @prefix@/share/sugar/data/kbdconfig & diff --git a/src/jarabe/intro/__init__.py b/src/jarabe/intro/__init__.py index 204f686..ca4f64d 100644 --- a/src/jarabe/intro/__init__.py +++ b/src/jarabe/intro/__init__.py @@ -11,6 +11,10 @@ from jarabe.intro.window import create_profile def check_profile(): profile = get_profile() + path = os.path.join(os.path.expanduser('~/.sugar'), 'debug') + if not os.path.exists(path): + profile.create_debug_file() + path = os.path.join(env.get_profile_path(), 'config') if os.path.exists(path): profile.convert_profile() |