Linux备忘录:创建IDEA快捷方式
1.进入共用的快捷方式目录:
cd /usr/share/applications #dir of desktop shortcut
2.创建快捷方式的文件:
sudo touch intellij-idea.desktop # creat a shortcut in this dir
3.使用root权限编辑:
sudo vim intellij-idea.desktop
[Desktop Entry]
Name=IntelliJ IDEA
Exec=sh /home/zero/soft/idea-IU-171.3780.107/bin/idea.sh
Comment=IntelliJ IDEA
Icon=/home/zero/soft/idea-IU-171.3780.107/bin/idea.png
Type=Application
Terminal=false
Encoding=UTF-8
把 /home/zero/soft/idea-IU-171.3780.107/ 改成你自己的安装目录
4.为该快捷方式添加执行权限:
sudo chmod +x /usr/share/applications/intellij-idea.desktop
5.把创建好的快捷方式复制到桌面:
cp intellij-idea.desktop /home/zero/Desktop/
本文介绍如何在Linux系统中为IntelliJ IDEA创建桌面快捷方式,包括进入快捷方式目录、创建并编辑快捷方式文件、设置执行权限及将快捷方式复制到桌面等步骤。
2万+

被折叠的 条评论
为什么被折叠?



