linux系统下怎么安装桌面快捷方式,安装Linux桌面快捷方式和图标

2023-05-16

您在

linux下使用.desktop文件作为图标.放置图标的位置取决于您使用的分发和桌面环境.由于我目前在Fedora 9上运行Gnome,我将用这些术语回答它.

一个示例foo.desktop文件将是:

[Desktop Entry]

Encoding=UTF-8

GenericName=Generic Piece Of Software

Name=FooBar

Exec=/usr/bin/foo.sh

Icon=foo.png

Terminal=false

Type=Application

Categories=Qt;Gnome;Applications;

.desktop文件应该在Fedora 9 Gnome下位于/usr/share / applications /中,你可以在.desktop上运行一个locate来找出你​​应该放在你的发行版上的位置. Gnome通常会查看KDE图标目录,看看是否还有其他图标….

Encoding,Name and Exec should speak for themselves.

Generic name == Brief Description of application.

Icon == The image to display for the icon

Terminal == Is this a terminal application,should I start it as one?

Type == Type of program this is,can be used in placing the icon in a menu.

Categories == This information is what is mainly used to place the icon in a given menu if an XML file to specify such is not present. The setup for menus is handled a little differently by everyone.

您可以设置更多属性,但它们并非绝对必要.

使用的图像文件位于/usr/share / icons /目录的某处.你可以通过解析来找到这些东西如何工作的所有奇迹,但基本的是你选择图标类型的目录(在我的情况下是gnome)并将图像放在适当的目录中(有一个可扩展的目录.svg图像,以及特定尺寸,例如光栅图像的48×48.在Gnome下,所有图像通常都是.png).

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

linux系统下怎么安装桌面快捷方式,安装Linux桌面快捷方式和图标 的相关文章

随机推荐