檔案如下圖所示。 [Desktop Entry] Encoding=UTF-8 Version=1.0 #version of an app. Name[en_US]=yEd #name of an app. GenericName=GUI Port Scanner #longer name of an app. Exec=java -jar /opt/yed-3.11.1/
yed.jar
#command used to launch an app. Terminal=false #whether an app requires to be run in a terminal Icon[en_US]=/opt/yed-3.11.1/icons/
yicon32.png
#location of icon file. Type=Application #type Categories=Application;Network;Security; #categories in which this app should be listed. Comment[en_US]=yEd Graph Editor #comment which appears as a tooltip.
使用命令列建立桌面快捷方式 要為特定程式或命令建立桌面快捷方式,你可以使用任意文字編輯器建立一個
.desktop
檔案,然後把它放到/usr/share/applications或者~/.local/share/applications
處。一個典型的.desktop
檔案如下圖所示。 [Desktop Entry] Encoding=UTF-8 Version=1.0 #version of an app. Name[en_US]=yEd #name of an app. GenericName=GUI Port Scanner #longer name of an app. Exec=java -jar /opt/yed-3.11.1/yed.jar
#command used to launch an app. Terminal=false #whether an app requires to be run in a terminal Icon[en_US]=/opt/yed-3.11.1/icons/yicon32.png
#location of icon file. Type=Application #type Categories=Application;Network;Security; #categories in which this app should be listed. Comment[en_US]=yEd Graph Editor #comment which appears as a tooltip.