From 2752f640bb983d05eb5c900602344f872e9cdb90 Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Tue, 13 Aug 2013 03:37:14 +0000 Subject: Make accessibility not fail to load if ax command is not present --- 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: -- cgit v0.9.1