在/usr/share/applications和~/.local/share/applications/xxxx.desktop这两个目录下有很多系统中的快捷方式图标,如果你的某个图标被误删了,可以在这里创建一个.图标都是.desktop格式的. application/x-desktop文件.
[Desktop Entry] //每个desktop文件都以这个标签开始,说明这是一个Desktop Entry文件
Version = 1.0 //标明Desktop Entry的版本(可选)
Name = Firefox //程序名称(必须),这里以创建一个Firefox的快捷方式为例
GenericName = Web Browser //程序通用名称(可选)
Comment = A Web Browser //程序描述(可选)
Exec = firefox %u //程序的启动命令(必选),可以带参数运行
//当下面的Type为Application,此项有效
Icon = firefox //设置快捷方式的图标(可选)
Terminal = false //是否在终端中运行(可选),当Type为Application,此项有效
Type = Application //desktop的类型(必选),常见值有“Application”和“Link”
Categories = GNOME;Application;Network; //注明在菜单栏中显示的类别(可选)
例如:firefox
[Desktop Entry]
Version=1.0
Name=Firefox Web Browser
Name[zh_CN]=Firefox 浏览器
Comment=Browse the World Wide Web
Comment[zh_CN]=浏览互联网
GenericName=Web Browser
GenericName[zh_CN]=网络浏览器
Exec=/usr/lib/firefox/firefox
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=/usr/lib/firefox/icons/mozicon128.png
Categories=GNOME;GTK;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;
StartupWMClass=Firefox
StartupNotify=true
X-Ayatana-Desktop-Shortcuts=NewWindow;
[NewWindow Shortcut Group]
Name=Open a New Window
Name[zh_CN]=新建窗口
Exec=firefox -new-window about:blank
TargetEnvironment=Unity
sicnature ---------------------------------------------------------------------
Your current IP address is: 125.78.15.206
Your IP address location: 福建省泉州市电信
Your IP address country and region: 中国
Your current browser is:
Your current system is:
Original content, please indicate the source:
同福客栈论坛 | 蟒蛇科普 | 海南乡情论坛 | JiaYu Blog
sicnature ---------------------------------------------------------------------
Welcome to reprint. Please indicate the source https://www.myzhenai.com.cn/post/880.html