diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-11-13 15:28:18 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-11-13 15:28:18 (GMT) |
commit | 9d28557bbdcde4f4a2eab952ae7cad692e72e648 (patch) | |
tree | 444588df9f055bdc775aff14062d6172bb8b44ac | |
parent | c210b7720b46134a1d2539387fe3fcdf0b4082ab (diff) |
Fix randr
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | shell/view/keyhandler.py | 5 |
2 files changed, 3 insertions, 3 deletions
@@ -1,3 +1,4 @@ +* Fix randr. (marco) * Do not fail if there is not an activity service. (marco) * Alert when an activity cannot be saved. (rwh) diff --git a/shell/view/keyhandler.py b/shell/view/keyhandler.py index cb572f4..b07f46c 100644 --- a/shell/view/keyhandler.py +++ b/shell/view/keyhandler.py @@ -17,9 +17,9 @@ import os import signal import logging +import subprocess import dbus -import gobject import gtk from hardware import hardwaremanager @@ -197,8 +197,7 @@ class KeyHandler(object): if self._screen_rotation == len(states): self._screen_rotation = 0 - gobject.spawn_async(['xrandr', '-o', states[self._screen_rotation]], - flags=gobject.SPAWN_SEARCH_PATH) + subprocess.Popen(['xrandr', '-o', states[self._screen_rotation]]) def handle_quit_emulator(self): if os.environ.has_key('SUGAR_EMULATOR_PID'): |