diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2013-01-22 10:33:06 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@laptop.org> | 2013-01-22 10:33:52 (GMT) |
commit | 193e4b353aa1aabc68d8408fedcde608ee903075 (patch) | |
tree | d442759accace82ec57ac54155f7915aa2f5e703 | |
parent | 19db9c5e9aee6e9c66c4bfef1d496e9b090f3e4d (diff) |
Cleanup a bit the xcursor hack
No need to echo display and no need to set it again before
starting the wm.
Acked-by: Simon Schampijer <simon@laptop.org>
-rwxr-xr-x | src/jarabe/main.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/jarabe/main.py b/src/jarabe/main.py index 0fc08f9..b2f6326 100755 --- a/src/jarabe/main.py +++ b/src/jarabe/main.py @@ -106,11 +106,6 @@ def setup_file_transfer_cb(): def setup_window_manager(): logging.debug('STARTUP: window_manager') - # have to reset cursor(metacity sets it on startup) - if subprocess.call('echo $DISPLAY; xsetroot -cursor_name left_ptr', - shell=True): - logging.warning('Can not reset cursor') - if subprocess.call('metacity-message disable-keybindings', shell=True): logging.warning('Can not disable metacity keybindings') @@ -217,8 +212,7 @@ def main(): GObject.idle_add(setup_cursortracker_cb) # make sure we have the correct cursor in the intro screen # TODO #3204 - if subprocess.call('echo $DISPLAY; xsetroot -cursor_name left_ptr', - shell=True): + if subprocess.call(["xsetroot", "-cursor_name", "left_ptr"]): logging.warning('Can not reset cursor') sound.restore() |