Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2013-01-28 11:29:52 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2013-01-28 11:29:52 (GMT)
commitdb05a98cd5a330ad05e40c928bf12c0b8c991823 (patch)
tree3dc69e3f32a1b1663897f0452f5c498cd3753b23
parent055979c8c4471564745c86b1b9ece34750c0b3bb (diff)
On Fedora 18 there is no Xwrapper.config
-rw-r--r--scripts/sugar-runner.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/sugar-runner.in b/scripts/sugar-runner.in
index e8aa9c8..86f25ca 100644
--- a/scripts/sugar-runner.in
+++ b/scripts/sugar-runner.in
@@ -47,9 +47,12 @@ def _write_xkb_config():
def _allow_to_run_x():
- with open("/etc/X11/Xwrapper.config") as f:
- if "allowed_users=anybody" in f.read():
- return
+ try:
+ with open("/etc/X11/Xwrapper.config") as f:
+ if "allowed_users=anybody" in f.read():
+ return
+ except IOError:
+ return
print "We need to allow everybody to run the X server"
tweak_wrapper = os.path.join(helpers_dir, "tweak-xwrapper")