Installer // Kill vChewingPhraseEditor before installation.
This commit is contained in:
parent
c7ab8d310c
commit
125d79e551
|
@ -13,6 +13,7 @@ import IMKUtils
|
|||
import InputMethodKit
|
||||
|
||||
public let kTargetBin = "vChewing"
|
||||
public let kTargetBinPhraseEditor = "vChewingPhraseEditor"
|
||||
public let kTargetType = "app"
|
||||
public let kTargetBundle = "vChewing.app"
|
||||
public let kTargetBundleWithComponents = "Library/Input%20Methods/vChewing.app"
|
||||
|
|
|
@ -51,6 +51,12 @@ extension AppDelegate {
|
|||
killTask.launch()
|
||||
killTask.waitUntilExit()
|
||||
|
||||
let killTask2 = Process()
|
||||
killTask2.launchPath = "/usr/bin/killall"
|
||||
killTask2.arguments = ["-9", kTargetBinPhraseEditor]
|
||||
killTask2.launch()
|
||||
killTask2.waitUntilExit()
|
||||
|
||||
if shouldWaitForTranslocationRemoval {
|
||||
progressIndicator.startAnimation(self)
|
||||
window.beginSheet(progressSheet) { returnCode in
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
killall vChewing || true
|
||||
killall vChewingPhraseEditor || true
|
||||
|
||||
if [ "${login_user}" = root ]; then
|
||||
rm -rf /Library/Input\ Methods/vChewing.app || true
|
||||
|
|
Loading…
Reference in New Issue