Linux create a shortcut in several ways

After extracting the file in .sh make a shortcut on the desktop

  1. cd /home/carry/desktop
  2. vi filename.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Idea
# 执行路径
Exec=sh /home/carry/Idea/bin/idea.sh
# 图标
Icon=/home/carry/Idea/bin/idea.png
Info="Idea"
Terminal=false
Type=Application
StartupNotify=true

  1. After exiting modification
  2. Give executable permission

The existing executable file to create a soft link on the desktop

ln -s source target

Guess you like

Origin www.cnblogs.com/CarryBlogs/p/12597872.html