Desktop Entry file is the desktop shortcut under Linux. A simplest desktop entry file is as following:
For an "Application" entry, "Exec" points to an executable file; for an "Link" entry, please use "URL" to define the URL your want to point to.
"Terminal" is true means openning the program in terminal.
"Icon" is used to define the icon file of the desktop entry.
For more information, please visit here.
1
[Desktop Entry]
2 Exec =/ home / sting / Software / flock / flock
3 Name = flock
4 Terminal = false
5 Type = Application
6 Icon =/ home / sting / Software / flock / icons / mozicon128.png
The first line is necessary. There are two types of desktop entry, the first is "Application" which means the entry is pointed to an executable program, the second one is "Link", which means a link to an URL.
2 Exec =/ home / sting / Software / flock / flock
3 Name = flock
4 Terminal = false
5 Type = Application
6 Icon =/ home / sting / Software / flock / icons / mozicon128.png
For an "Application" entry, "Exec" points to an executable file; for an "Link" entry, please use "URL" to define the URL your want to point to.
"Terminal" is true means openning the program in terminal.
"Icon" is used to define the icon file of the desktop entry.
For more information, please visit here.
Blogged with Flock
Tags: linux
本文介绍了Linux下桌面快捷方式文件的格式与结构。详细解释了[Desktop Entry]配置项的作用,包括指向执行文件的Exec、指定名称的Name、是否在终端中打开的Terminal以及图标路径等属性。同时,区分了Application和Link两种类型的快捷方式。
9900

被折叠的 条评论
为什么被折叠?



