附件:
https://download.csdn.net/download/weixin_44503976/88557248
wget https://d1.music.126.net/dmusic/netease-cloud-music_1.2.1_amd64_ubuntu_20190428.deb
wget -O patch.c https://aur.archlinux.org/cgit/aur.git/plain/patch.c?h=netease-cloud-music
sudo apt install gcc libvlccore-dev
sudo dpkg -i netease-cloud-music_1.2.1_amd64_ubuntu_20190428.deb
cc -O2 -fPIC -shared -I /usr/include/vlc/plugins/ -o libnetease-patch.so patch.c
sudo apt-get install vlc libvlc-dev
sudo install -D -m644 libnetease-patch.so /opt/netease/netease-cloud-music/libnetease-patch.so
sudo gedit /opt/netease/netease-cloud-music/netease-cloud-music.bash
用下面的内容覆盖
HERE="$(dirname "$(readlink -f "${0}")")" trap 'kill $(jobs -p)' SIGINT SIGTERM EXIT export LD_LIBRARY_PATH="${HERE}"/libs export QT_PLUGIN_PATH="${HERE}"/plugins export QT_QPA_PLATFORM_PLUGIN_PATH="${HERE}"/plugins/platforms export QT_QPA_PLATFORM=xcb # wayland 需要 export LD_PRELOAD="${HERE}"/libnetease-patch.so cd /usr/lib/x86_64-linux-gnu exec "${HERE}"/netease-cloud-music $@
转载链接:https://www.zhihu.com/question/581884243/answer/2873543468