karabiner fixes.
This commit is contained in:
parent
b7b92a6e80
commit
6e9d746e93
@ -10,7 +10,7 @@ def setup(ctx):
|
|||||||
brew(ctx)
|
brew(ctx)
|
||||||
cider(ctx)
|
cider(ctx)
|
||||||
access_for_assistive_devices(ctx)
|
access_for_assistive_devices(ctx)
|
||||||
hyper(ctx)
|
karabiner(ctx)
|
||||||
locate(ctx)
|
locate(ctx)
|
||||||
set_path_for_launchd(ctx)
|
set_path_for_launchd(ctx)
|
||||||
rvm(ctx)
|
rvm(ctx)
|
||||||
@ -81,6 +81,10 @@ def access_for_assistive_devices(ctx):
|
|||||||
user_application = os.path.expanduser('~' + app_string)
|
user_application = os.path.expanduser('~' + app_string)
|
||||||
access_if_exists(ctx, user_application)
|
access_if_exists(ctx, user_application)
|
||||||
access_if_exists(ctx, app_string)
|
access_if_exists(ctx, app_string)
|
||||||
|
access_if_exists(
|
||||||
|
ctx,
|
||||||
|
"/Applications/Karabiner.app/"
|
||||||
|
)
|
||||||
access_if_exists(
|
access_if_exists(
|
||||||
ctx,
|
ctx,
|
||||||
"/Applications/Karabiner.app/Contents/Applications/"
|
"/Applications/Karabiner.app/Contents/Applications/"
|
||||||
@ -90,6 +94,7 @@ def access_for_assistive_devices(ctx):
|
|||||||
|
|
||||||
def access_if_exists(ctx, app_string):
|
def access_if_exists(ctx, app_string):
|
||||||
if os.path.exists(app_string):
|
if os.path.exists(app_string):
|
||||||
|
print("enabling access for {0}", app_string)
|
||||||
ctx.run(
|
ctx.run(
|
||||||
'zsh -c "source ~/.zshrc && '
|
'zsh -c "source ~/.zshrc && '
|
||||||
'enable_access_for_assistive_devices \"{0}\""'.format(
|
'enable_access_for_assistive_devices \"{0}\""'.format(
|
||||||
|
Loading…
Reference in New Issue
Block a user