Created
June 12, 2018 13:07
-
-
Save ksqsf/33dee3254b7e2eab45a6fb9121c635d2 to your computer and use it in GitHub Desktop.
解决网易云音乐无法启动的问题
This file contains 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 | |
# 首先,将 netease-cloud-music 移动到 netease-cloud-music.bin | |
# 然后将本文件保存为 /usr/bin/netease-cloud-music 并设置可执行权限 | |
FILE="$HOME/.ICEauthority" | |
BACKUP="$HOME/.ICEauthority.netease-cloud-music" | |
if [ -e $FILE ] | |
then | |
echo ".ICEauthority found, temporarily renaming it" | |
mv $FILE $BACKUP | |
fi | |
netease-cloud-music.bin "$@" & | |
sleep 5 | |
if [ -e $BAKCUP ] | |
then | |
echo ".ICEauthority.netease-cloud-music found, restoring" | |
mv $BACKUP $FILE | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment