Ticket #163: separate_debug_from_xsession_2.patch

File separate_debug_from_xsession_2.patch, 962 bytes (added by erikos, 15 years ago)

source the debug options in the sugar executable; create debug file on profile creation

  • bin/sugar.in

    diff --git a/bin/sugar.in b/bin/sugar.in
    index af7f6b2..ba49358 100644
    a b if ! test -f "$GTK2_RC_FILES"; then 
    1111    exit 1
    1212fi
    1313
     14# Source debug definitions
     15if [ -f ~/.sugar/debug ]; then
     16        . ~/.sugar/debug
     17fi
     18
    1419matchbox-window-manager -use_titlebar no -theme sugar \
    1520                        -kbdconfig @prefix@/share/sugar/data/kbdconfig &
    1621
  • src/jarabe/intro/__init__.py

    diff --git a/src/jarabe/intro/__init__.py b/src/jarabe/intro/__init__.py
    index 204f686..ca4f64d 100644
    a b from jarabe.intro.window import create_profile 
    1111def check_profile():
    1212    profile = get_profile()
    1313
     14    path = os.path.join(os.path.expanduser('~/.sugar'), 'debug')
     15    if not os.path.exists(path):
     16        profile.create_debug_file()
     17
    1418    path = os.path.join(env.get_profile_path(), 'config')
    1519    if os.path.exists(path):
    1620        profile.convert_profile()