Skip to content

Commit

Permalink
Merge pull request #61 from qwertyyb/fix/install
Browse files Browse the repository at this point in the history
fix: 修复安装问题
  • Loading branch information
qwertyyb authored Jun 8, 2022
2 parents 49569a7 + 6578c47 commit 1685dd5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion Fire/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
2 changes: 0 additions & 2 deletions package/scripts/postinstall
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 1685dd5

Please sign in to comment.