From 6578c47446a1ddb63ec596bf50e6cd4b8e078e9b Mon Sep 17 00:00:00 2001 From: qwertyyb Date: Tue, 7 Jun 2022 22:10:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Fire/AppDelegate.swift | 2 +- package/scripts/postinstall | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Fire/AppDelegate.swift b/Fire/AppDelegate.swift index 3b10fc6..e60c8f4 100644 --- a/Fire/AppDelegate.swift +++ b/Fire/AppDelegate.swift @@ -18,7 +18,7 @@ class AppDelegate: NSObject, NSApplicationDelegate { func installInputSource() { print("install input source") - InputSource.shared.deactivateInputSource() +// InputSource.shared.deactivateInputSource() InputSource.shared.registerInputSource() InputSource.shared.activateInputSource() } diff --git a/package/scripts/postinstall b/package/scripts/postinstall index 1aed971..aaab8d4 100755 --- a/package/scripts/postinstall +++ b/package/scripts/postinstall @@ -6,8 +6,6 @@ login_user=`/usr/bin/stat -f%Su /dev/console` /usr/bin/sudo -u "${login_user}" pkill -9 "${TARGET}" -/usr/bin/sudo -u "${login_user}" "/Library/Input Methods/${TARGET}.app/Contents/MacOS/${TARGET}" --build-dict - /usr/bin/sudo -u "${login_user}" "/Library/Input Methods/${TARGET}.app/Contents/MacOS/${TARGET}" --install echo "${Target} input method registered and activated successfully"