XFCE修改系统自动生成的菜单方法
原来特简单
在
/usr/share/applications
目录里有大量的*.desktop文件。想加一个菜单项只须复制同类别的文件然后改改内容就完事。很简单。
http://forum.xfce.org/index.php?topic=2658.0
Add an applicatation to the menu:
You have to create a .desktop file (usually in /usr/share/applications/) for the app you want to add.
In the following example, we create a entry in the menu with the name "foo" in the submenu "Multimedia":
Code:
[Desktop Entry]
Encoding=UTF-8
Name=foo
GenericName=bar
Comment=Senseless programm ever
Exec=foobar
Icon=/usr/share/pixmaps/foobar.xpm
Terminal=false
Type=Application
Categories=Multimedia;
Remove an application to the menu:
You can do this in to ways.
First way, and the easier one is to simply remove the .desktop file in the /usr/share/applications/-folder.
The second way is, to add this line to the .desktop file:
Code:
NoDisplay=true
注意:不想显示就加上面一句,最好不删除desktop文件。原因如下:
You should do "NoDisplay=true" as if you remove the file you will lose any mime filetype associations.
XFCE资料收集贴
-
- 帖子: 80
- 注册时间: 2008-11-19 16:18
Re: 找到XFCE修改系统自动生成的菜单方法
xfce常见问题解答
http://wiki.xfce.org/zh-cn/faq
此页为用户和开发者提供了大量 Xfce 文档。
http://www.xfce.org/documentation/
http://wiki.xfce.org/zh-cn/faq
此页为用户和开发者提供了大量 Xfce 文档。
http://www.xfce.org/documentation/
- weive
- 帖子: 3236
- 注册时间: 2007-10-21 18:36
- 来自: 汕头/广东/中国