Skip to content

Commit

Permalink
logout after IME installed
Browse files Browse the repository at this point in the history
  • Loading branch information
dongyuwei committed Nov 5, 2023
1 parent 9df1c63 commit ef185ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions package/PackageInfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!-- <pkg-info postinstall-action="logout"/> -->
<pkg-info postinstall-action="none"/>
<pkg-info postinstall-action="logout"/>
3 changes: 3 additions & 0 deletions package/scripts/postinstall
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ef185ee

Please sign in to comment.