ubuntu 将idea/vscode快捷方式加入到启动器中

时间:2021-06-10 17:51:51   收藏:0   阅读:0

1、进入  applications

cd  /usr/share/applications

 

2、创建文件

sudo vim  idea.desktop   

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=IntelliJ IDEA
GenericName=Java IDE
Comment=IntelliJ IDEA
Exec=/usr/local/lib/idea/bin/idea.sh
Icon=/usr/local/lib/idea/bin/idea.png
Terminal=false
Type=Application
Categories=Development;IDE

 

vim  idea.desktop

[Desktop Entry]
Categories=GNOME;DesktopSettings;
Name=VSCode
Name[zh_CN]=VSCode  
Name[en]=VSCode
Name[en_US]=VSCode
GenericName=VSCode
Comment=VSCode
Exec=/opt/vscode/bin/code
Terminal=false
Icon=/opt/vscode/resources/app/resources/linux/code.png
Type=Application
StartupNotify=true
Hidden=false
X-KDE-SubstituteUID=false
X-KDE-Username=owen

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!