Skip to content

Commit

Permalink
Merge pull request #2 from 45gfg9/main
Browse files Browse the repository at this point in the history
Use `pkill` instead of `pgrep`
  • Loading branch information
xiao99xiao authored Nov 17, 2023
2 parents 33cdd46 + a84da8d commit fbc0cb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SCIMKiller/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
@objc func killSCIM() {
let task = Process()
task.launchPath = "/bin/sh"
task.arguments = ["-c", "kill -9 $(pgrep SCIM)"]
task.arguments = ["-c", "/usr/bin/pkill -9 SCIM"]

do {
try task.run()
Expand All @@ -66,7 +66,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {

let task2 = Process()
task2.launchPath = "/bin/sh"
task2.arguments = ["-c", "kill -9 $(pgrep SCIM_Extension)"]
task2.arguments = ["-c", "/usr/bin/pkill -9 SCIM_Extension"]

do {
try task2.run()
Expand Down

0 comments on commit fbc0cb2

Please # to comment.