Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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")