From 6e9d746e934cfbf3a1f2c091100dde46ace37f01 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 28 Apr 2015 13:43:26 -0700 Subject: [PATCH] karabiner fixes. --- tasks/osx.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tasks/osx.py b/tasks/osx.py index d3cb82fa..29730329 100644 --- a/tasks/osx.py +++ b/tasks/osx.py @@ -10,7 +10,7 @@ def setup(ctx): brew(ctx) cider(ctx) access_for_assistive_devices(ctx) - hyper(ctx) + karabiner(ctx) locate(ctx) set_path_for_launchd(ctx) rvm(ctx) @@ -81,6 +81,10 @@ def access_for_assistive_devices(ctx): user_application = os.path.expanduser('~' + app_string) access_if_exists(ctx, user_application) access_if_exists(ctx, app_string) + access_if_exists( + ctx, + "/Applications/Karabiner.app/" + ) access_if_exists( ctx, "/Applications/Karabiner.app/Contents/Applications/" @@ -90,6 +94,7 @@ def access_for_assistive_devices(ctx): def access_if_exists(ctx, app_string): if os.path.exists(app_string): + print("enabling access for {0}", app_string) ctx.run( 'zsh -c "source ~/.zshrc && ' 'enable_access_for_assistive_devices \"{0}\""'.format(