Create shortcut in Ubuntu

在Linux下创建快捷方式的小技巧。当然现在19.04版本之后,我们可以更简单的通过右击目标文件,点击创建连接就可以创建一个新的快捷方式了。

Method 1: Copy one

Open /usr/share/applications. Look for the program you want to create the shortcut.

Copy it.

Method 2: Create .desktop file

1
sudo vim  /usr/share/applications/eclipse.desktop

And then input:

1
2
3
4
5
6
7
8
9
10
[Desktop Entry] 
Encoding=UTF-8
Name=eclipse
Comment=Eclipse IDE
Exec=/opt/eclipse/eclipse # Where your program is
Icon=/opt/eclipse/icon.xpm
Terminal=false
StartupNotify=true
Type=Application
Categories=Application;Development;

And then we can copy

Method 3 ln -s

run

1
ln -s 'Origin program' 'Your Destination'

Create shortcut in Ubuntu
http://blog.chivier.site/2019-03-26/2021/Create-shortcut-in-Ubuntu/
Author
Chivier Humber
Posted on
March 26, 2019
Licensed under