Linux備忘錄:創建IDEA快捷方式
阿新 • • 發佈:2018-05-02
bsp home rtc ica wrap IE span pretty 好的
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備忘錄:創建IDEA快捷方式