diff 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() |