From ef185ee0b335a1d90ff37e82d7d933ae8d1dd298 Mon Sep 17 00:00:00 2001 From: Dong Yuwei Date: Sun, 5 Nov 2023 14:40:34 +0800 Subject: [PATCH] logout after IME installed --- package/PackageInfo | 3 +-- package/scripts/postinstall | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package/PackageInfo b/package/PackageInfo index 93be899..8bbb238 100644 --- a/package/PackageInfo +++ b/package/PackageInfo @@ -1,3 +1,2 @@ - - + \ No newline at end of file diff --git a/package/scripts/postinstall b/package/scripts/postinstall index 95f9d98..dd9f840 100755 --- a/package/scripts/postinstall +++ b/package/scripts/postinstall @@ -6,4 +6,7 @@ login_user=`/usr/bin/stat -f%Su /dev/console` /usr/bin/sudo -u "${login_user}" "/Library/Input Methods/hallelujah.app/Contents/MacOS/hallelujah" --install +# refresh the preferences cache +killall -u $USER cfprefsd + echo "hallelujah input method registered and activated successfully" > /tmp/hallelujah-postinstall