From aaa1fcdb60d865709b27d00ba1161740087a8c70 Mon Sep 17 00:00:00 2001 From: "T. R. Bernstein" <137705289+trbernstein@users.noreply.github.com> Date: Wed, 3 Jul 2024 02:10:06 +0200 Subject: [PATCH] Fix "launchctl enable" call --- modules/06-install-remap-keys.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/06-install-remap-keys.sh b/modules/06-install-remap-keys.sh index 62dcb95..f364bf8 100755 --- a/modules/06-install-remap-keys.sh +++ b/modules/06-install-remap-keys.sh @@ -117,8 +117,9 @@ function createLaunchDaemon() { } function enableLaunchDaemon() { - launchctl enable system/${launchDaemonPath%.*} - launchctl bootstrap system ${launchDaemonPath} + local serviceName="$($dataProvider LaunchdServiceName)" + launchctl enable system/${serviceName} + launchctl bootstrap system/ ${launchDaemonPath} } function createLaunchdService() {