From 9d28557bbdcde4f4a2eab952ae7cad692e72e648 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 13 Nov 2007 16:28:18 +0100 Subject: [PATCH] Fix randr --- NEWS | 1 + shell/view/keyhandler.py | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 96eb0157..89aa803a 100644 --- a/NEWS +++ b/NEWS @@ -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 cb572f4e..b07f46cd 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'):