Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bin/sugar-emulator
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@marcopg.org>2008-12-12 11:07:35 (GMT)
committer Marco Pesenti Gritti <marco@marcopg.org>2008-12-12 11:07:35 (GMT)
commit9ecb8fd1e8785f766d42637218d43a65dab812c9 (patch)
tree7f56d94376f00af78ba23e2640b267dc36e3e217 /bin/sugar-emulator
parent78c54da36b4a6ae398f5b254fa80ee1689c6f68a (diff)
Allow to run multiple emulators even with the fedora hack.
Diffstat (limited to 'bin/sugar-emulator')
-rw-r--r--bin/sugar-emulator3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/sugar-emulator b/bin/sugar-emulator
index ed1640e..8c0aa8e 100644
--- a/bin/sugar-emulator
+++ b/bin/sugar-emulator
@@ -16,6 +16,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
import os
+import random
import subprocess
import time
from optparse import OptionParser
@@ -61,7 +62,7 @@ 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)
+ _run_xephyr(random.randint(100, 500), dpi, dimensions)
return
for display in range(100, 110):