[Sugar-devel] [PATCH sugar 15/20] Cleanup a bit the xcursor hack
Daniel Narvaez
dwnarvaez at gmail.com
Mon Dec 10 14:11:41 EST 2012
From: Daniel Narvaez <dwnarvaez at gmail.com>
No need to echo display and no need to set it again before
starting the wm.
---
src/jarabe/main.py | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/src/jarabe/main.py b/src/jarabe/main.py
index 9b3417f..680a72f 100755
--- a/src/jarabe/main.py
+++ b/src/jarabe/main.py
@@ -76,11 +76,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')
@@ -188,8 +183,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()
--
1.7.10.4
More information about the Sugar-devel
mailing list