Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuben Rodriguez <ruben@activitycentral.com>2013-08-13 03:37:14 (GMT)
committer Ruben Rodriguez <ruben@activitycentral.com>2013-08-13 03:37:14 (GMT)
commit2752f640bb983d05eb5c900602344f872e9cdb90 (patch)
treec49fd1698ae6b68c0b091ffd944f50eccfb228d0
parentf5e99c6af4ac3754418cc78bf01327ba5cb22550 (diff)
Make accessibility not fail to load if ax command is not present
-rw-r--r--src/jarabe/model/accessibility.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/jarabe/model/accessibility.py b/src/jarabe/model/accessibility.py
index 832093d..6299d62 100644
--- a/src/jarabe/model/accessibility.py
+++ b/src/jarabe/model/accessibility.py
@@ -20,6 +20,7 @@
from gi.repository import Gtk
from gi.repository import GConf
import subprocess
+import logging
class Keyboard:
@@ -72,7 +73,10 @@ class Keyboard:
cmd += ['+mousekeys', 'mousemaxspeed', '3000', 'mousetimetomax', '1000', '-timeout', '-repeatkeys']
else:
cmd += ['-mousekeys', 'mousemaxspeed', '3000', 'mousetimetomax', '1000', '+timeout', '+repeatkeys']
- subprocess.call(cmd)
+ try:
+ subprocess.call(cmd)
+ except:
+ logging.error('"ax" command not found')
class Screen: