Created
April 3, 2023 14:20
-
-
Save VincentSit/a682f4162b998c7f24d08ab34bf233da to your computer and use it in GitHub Desktop.
Uninstall WeType for macOS / 卸载 macOS 微信键盘
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
INPUT_METHODS_DIR="/Library/Input Methods" | |
WETYPE_INSTALL_PATH="$INPUT_METHODS_DIR/WeType.app" | |
WXKB_INSTALL_PATH="$INPUT_METHODS_DIR/wxkbmac.app" | |
CUR_DIR=$(cd "$(dirname "$0")"; pwd) | |
echo "$(date +%H:%M:%S) kill WeType" | |
killall wxkbmac | |
#killall WeTypeFeedback | |
#killall WeType | |
echo "$(date +%H:%M:%S) remove packages" | |
if [ -d "$WXKB_INSTALL_PATH" ]; then | |
echo "$(date +%H:%M:%S) remove wxkbmac package" | |
rm -rf "$WXKB_INSTALL_PATH" | |
fi | |
if [ -d "$WETYPE_INSTALL_PATH" ]; then | |
echo "$(date +%H:%M:%S) remove WeType package" | |
rm -rf "$WETYPE_INSTALL_PATH" | |
fi | |
stillRunning=$(ps -ef | grep "System Preferences" | grep -v "grep") | |
if [ "$stillRunning" ] ; then | |
killall System\ Preferences | |
fi | |
killall SystemUIServer | |
echo "$(date +%H:%M:%S) finish" |
Author
VincentSit
commented
Apr 3, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment