From 204aac8658020eb9a2b0014c17012abe6ae83ab9 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sat, 27 Jan 2007 13:31:13 +0000 Subject: Drop Xnest support. Start fullscreen if widht <= 900. --- (limited to 'sugar/emulator.py') diff --git a/sugar/emulator.py b/sugar/emulator.py index 664e379..fe9539d 100644 --- a/sugar/emulator.py +++ b/sugar/emulator.py @@ -95,20 +95,6 @@ class XephyrProcess(Process): os.environ['DISPLAY'] = ":%d" % (self._display) os.environ['SUGAR_XEPHYR_PID'] = '%d' % self.pid - -class XnestProcess(Process): - def __init__(self): - self._display = get_display_number() - cmd = 'Xnest :%d -ac -geometry 800x600' % (self._display) - Process.__init__(self, cmd) - - def get_name(self): - return 'Xnest' - - def start(self, standard_output=False): - Process.start(self) - os.environ['DISPLAY'] = ":%d" % (self._display) - class Emulator(object): """The OLPC emulator""" def __init__(self, fullscreen): @@ -119,13 +105,8 @@ class Emulator(object): process = XephyrProcess(self._fullscreen) process.start() except: - try: - process = XnestProcess() - process.start() - except: - print 'Cannot run the emulator. You need to install \ - Xephyr or Xnest.' - sys.exit(0) + print 'Cannot run the emulator. You need to install Xephyr' + sys.exit(0) process = MatchboxProcess() process.start() -- cgit v0.9.1