欢迎光临
我们一直在努力

deepin制作快捷启动图标的方法

默认情况下系统所有的快捷方式放在/usr/share/applications,打开该目录会看到大量的.desktop文件,每个文件便是一个快捷方式。

有时我们需要自己安装软件,然后添加快捷方式。文件的主要结构为:

[Desktop Entry]
Name=Atom
Comment=A hackable text editor for the 21st Century.
GenericName=Text Editor
Exec=/opt/atom/atom %F
Icon=atom
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Utility;TextEditor;Development;
MimeType=text/plain;
X-Deepin-CreatedBy=com.deepin.dde.daemon.Launcher
X-Deepin-AppID=atom

其中Name是快捷方式名;comment:注释;Exec(这个很关键):启动脚本,要将完整路径写上去。Icon:图标的文件名及路径。Terminal:是否以终端启动。

如要放到桌面上可将文件复制到主目录\桌面文件夹内。

 

未经允许不得转载:小罗同学 » deepin制作快捷启动图标的方法

分享到:更多 ()