how to add the files into menu
who can tell me how can I add my games into my menu ,for I have thrown it into the dash and make the dash empty!!!!and now I use rpm -ivh gnome-gaim....rpmbut after that ,there's nothing in my main menu,who can help me?! 这是从别人那里抄来的,忘记出自哪里,请原创仁兄不要介意!
Gnome下添加菜单快捷方式
很多人抱怨在RedHat、Fedora Core系列下,无法自定义Gnome菜单项,现本人发现了解决之道,现在此公布,若有人曾先行公布过,请务见怪,我没有找到您的文章:
(1.1)用rpm -ql 命令查找到该软件的快捷方式,即扩展名为.desktop的文件;(命令中的 l 为小写 L)
(1.2)或者在桌面自行创建快捷启动器;
(2)将其复制到/usr/share/applications下。
(3)在此目录下用文本编辑器打开此快捷方式。
(4)然后打开同一组的已有的快捷方式,
比如:LumaQQ安装后,并没有在“互联网”菜单项中创建快捷方式,因此可以打开同在“互联网”菜单项中的快捷方式“Messaging Client”,其文件名为gaim.desktop,以此为参照,修改LumaQQ的快捷方式文件(修改结果如下):
Encoding=UTF-8
Name=LumaQQ
Comment=LumaQQ
Exec=/opt/LumaQQ/lumaqq-ok
Icon=/opt/LumaQQ/qq.gif
Terminal=false
Type=Application
Categories=Application;Network;X-Red-Hat-Base;
StartupNotify=true
有些多余的行可以删除。
至于每一行的含义,我不多说,大家自己研究。
提示:可以打开别的菜单项里的快捷方式对比一下。 昨天,参考了一下Gnome的Help文件
To Configure Menus That Users Cannot Modify
Users cannot modify a menu if the following conditions are true:
A vfolder information file that corresponds to the menu is present in the/etc/gnome-vfs-2.0/vfolders directory.
The vfolder information file has the same name as the URI location that corresponds to the menu.
The user permissions for the vfolder information file are set to read only.
To configure a menu so that users cannot modify the menu, perform the following steps:
1、Create a vfolder information file for the menu that you want to configure in the /etc/gnome-vfs-2.0/vfolders directory.
2、Give the vfolder information file the name of the URI location that corresponds to the menu that you want to configure. For example, to configure theApplicationsmenu, create a vfolder information calledapplications.vfolder-infoin the /etc/gnome-vfs-2.0/vfolders directory.
3、Set the permissions on the vfolder information file to read only.
好像这个问题和gnome的vfs有关,我在/etc/gnome-vfs-2.0/modules里发现了好玩的东西。default-modules.conf这个文件和default-modules.conf.with-menu-editing这个文件相差不大,这两个文件中不同的地方就在
default-modules.conf
# vfolder desktop method
applications: menu
applications-all-users: menu
all-applications: menu
preferences: menu
preferences-all-users:menu
all-preferences: menu
favorites: desktop
start-here: desktop
system-settings: menu
default-modules.conf.with-menu-editing
# vfolder desktop method
applications: vfolder-desktop
applications-all-users: vfolder-desktop
all-applications: vfolder-desktop
preferences: vfolder-desktop
preferences-all-users:vfolder-desktop
all-preferences: vfolder-desktop
favorites: vfolder-desktop
他们加载的模块不同。
而我的FC3test3里,/usr/lib/gnome-vfs-2.0/modules目录中,只有libmenu.so模块,没有vfolder-desktop对应的模块。
页:
[1]