Skip to content

Instantly share code, notes, and snippets.

@ksqsf
Created June 12, 2018 13:07
Show Gist options
  • Save ksqsf/33dee3254b7e2eab45a6fb9121c635d2 to your computer and use it in GitHub Desktop.
Save ksqsf/33dee3254b7e2eab45a6fb9121c635d2 to your computer and use it in GitHub Desktop.
解决网易云音乐无法启动的问题
#!/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