diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-10 18:08:07 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-14 11:12:24 (GMT) |
commit | 3260b2d65f8aa88093e075bda8a96e0c00f9dc81 (patch) | |
tree | 0c988509485e9fd11b6dcc9f55904e2843e5708e /src/jarabe/main.py | |
parent | ec1b88bab709c4472304818dc95395112286bce2 (diff) |
Cleanup a bit the xcursor hack
No need to echo display and no need to set it again before
starting the wm.
Diffstat (limited to 'src/jarabe/main.py')
-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 0d305e5..087f006 100755 --- a/src/jarabe/main.py +++ b/src/jarabe/main.py @@ -80,11 +80,6 @@ def check_software_updates(): 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') @@ -192,8 +187,7 @@ def main(): cursortracker.setup() # 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() |