Ticket #1433: sugar-1433.patch

File sugar-1433.patch, 1.0 KB (added by alsroot, 12 years ago)
  • bin/sugar.in

    diff --git a/bin/sugar.in b/bin/sugar.in
    index 0cc97ca..094917f 100644
    a b EOF 
    1414    exit 0
    1515}
    1616
     17init_cursor() {
     18    # have to reset cursor(metacity sets it on startup)
     19    # ugly but works
     20    for i in 1 2 3; do
     21        sleep 1
     22        xsetroot -cursor_name left_ptr
     23    done
     24}
     25
    1726while [ $# -ne 0 ] ; do
    1827    case "$1" in
    1928        -d | --display)
    if [ -f ~/.sugar/debug ]; then 
    5059        . ~/.sugar/debug
    5160fi
    5261
     62echo Xcursor.theme: sugar | xrdb -merge
    5363metacity --no-force-fullscreen -d $DISPLAY &
     64init_cursor &
    5465
    5566exec sugar-session
  • bin/sugar-session

    diff --git a/bin/sugar-session b/bin/sugar-session
    old mode 100644
    new mode 100755
    index 41c9255..427eeb8
    a b def main(): 
    181181    logger.start('shell')
    182182
    183183    client = gconf.client_get_default()
    184     client.set_string('/desktop/gnome/peripherals/mouse/cursor_theme', 'sugar')
    185184    client.set_string('/apps/metacity/general/mouse_button_modifier',
    186185                      'disabled')
    187186