Skip to content

Commit

Permalink
Disable sudden termination in quitKarabiner
Browse files Browse the repository at this point in the history
  • Loading branch information
tekezo committed Aug 5, 2024
1 parent 3733d94 commit dadb1c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/apps/share/swift/KarabinerAppHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
}

0 comments on commit dadb1c3

Please sign in to comment.