*.desktop

作者: 依杖听江声 | 来源:发表于2017-05-20 17:19 被阅读0次

ubuntu下如果创建桌面快捷方式的话,一般要在/usr/share/applications/下新建一个对应的*.desktop文件。
比如我们将系统自带的firefox更换为firefox-ESR,就需要创建对应的firefox.desktop文件,具体方法为:使用gedit 新建firefox.desktop,将以下内容粘贴进去

[Desktop Entry]
Name=firefox
Name[zh_CN]=firefox
Comment=firefox
Exec=/opt/firefox/firefox
Icon=/opt/firefox/browser/icons/mozicon128.png
Terminal=false
Type=Application
Categories=Application;
Encoding=UTF-8
StartupNotify=true

有时候会提示 [Desktop: command not found,这是行末存在空格导致的,也就是说,创建desktop文件的时候,要保证每行末尾没有多余的空格。

相关文章

网友评论

      本文标题:*.desktop

      本文链接:https://www.haomeiwen.com/subject/rlypxxtx.html