From dadb1c363349fe880956a8f007efc1c6084f44cd Mon Sep 17 00:00:00 2001 From: Takayama Fumihiko Date: Tue, 6 Aug 2024 08:39:00 +0900 Subject: [PATCH] Disable sudden termination in quitKarabiner --- src/apps/share/swift/KarabinerAppHelper.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/apps/share/swift/KarabinerAppHelper.swift b/src/apps/share/swift/KarabinerAppHelper.swift index fec868944..eb4816971 100644 --- a/src/apps/share/swift/KarabinerAppHelper.swift +++ b/src/apps/share/swift/KarabinerAppHelper.swift @@ -35,8 +35,12 @@ final class KarabinerAppHelper { quitKarabiner(askForConfirmation: false) } } else { + ProcessInfo.processInfo.disableSuddenTermination() + libkrbn_services_unregister_all_agents() libkrbn_killall_settings() + + ProcessInfo.processInfo.enableSuddenTermination() } } }