From deae08b3b1b5976ca7ebd75afec58a0054e9c0d4 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Wed, 03 Dec 2008 12:23:14 +0000 Subject: Work around for broken Fedora 10 Xephyr. --- diff --git a/bin/sugar-emulator b/bin/sugar-emulator index 499b8c0..ed1640e 100644 --- a/bin/sugar-emulator +++ b/bin/sugar-emulator @@ -58,6 +58,12 @@ def _check_xephyr(display): return result == 0 def _start_xephyr(dpi, dimensions): + # FIXME evil workaround until F10 Xephyr is fixed + if os.path.exists('/etc/fedora-release'): + if open('/etc/fedora-release').read().startswith('Fedora release 10'): + _run_xephyr(100, dpi, dimensions) + return + for display in range(100, 110): if not _check_xephyr(display): _run_xephyr(display, dpi, dimensions) -- cgit v0.9.1