cd /usr/share/applications
sudo touch name.desktop
sudo nano name.desktop
把下面的代码copy进去,并更换icon和exec的地址
[Desktop Entry]
Encoding=UTF-8
Name=CLion
Comment=clion-2018.1.1
Exec=/home/sqwlly/Downloads/clion-2018.1.1/bin/clion.sh
Icon=/home/sqwlly/Downloads/clion-2018.1.1/bin/clion.svg
Categories=Application;Development;Java;IDE
Version=2018.1.1
Type=Application
#Terminal=1
网友评论