Recently for the first time ubuntu18 groping for a long time, of course, NetEase Cloud is an indispensable part, in the configuration of various environments + procedures, but also found a solution to the NetEase cloud method.
First install the NetEase cloud.
By default, sudo must be used at the terminal to run
The solution is really simple,
sudo mv/usr/bin/netease-cloud-music/usr/bin/netease-cloud-music-old
sudo vim/usr/bin/netease-cloud-music
#!/bin/bash
echo Password | sudo netease-cloud-music-old
Password for your password
At this point in the terminal can not be applied sudo normal open netease cloud Netease-cloud-music
There's one final step.
sudo gedit/usr/share/applications/netease-cloud-music.desktop
[Desktop Entry]
version=1.0
Type=application
Name=netease Cloud Music
name[zh_cn]= NetEase Cloud Music
name[zh_tw]= Internet and easy-to-cloud music
Comment=netease Cloud Music
comment[zh_cn]= NetEase Cloud Music
comment[zh_tw]= Internet and easy-to-cloud music
Icon=netease-cloud-music
Exec=netease-cloud-music--no-sandbox%u
Categories=audiovideo; Player;
Terminal=false
Startupnotify=true
Startupwmclass=netease-cloud-music
Mimetype=audio/aac;audio/flac;audio/mp3;audio/mp4;audio/mpeg;audio/ogg;audio/x-ape;audio/x-flac;audio/x-mp3; Audio/x-mpeg;audio/x-ms-wma;audio/x-vorbis;audio/x-vorbis+ogg;audio/x-wav;
Save the run.
The configuration is complete here.
Ubuntu Solution NetEase Cloud can't open