Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
zh-cn:howto:customize-menu [2012/04/18 16:28] – [Add entries] haobug | zh-cn:howto:customize-menu [2014/12/27 04:24] (current) – [强制修改] bnw.h | ||
---|---|---|---|
Line 74: | Line 74: | ||
exo-desktop-item-edit --create-new ~/ | exo-desktop-item-edit --create-new ~/ | ||
- | 但这样新建的文件类别(Categories)里面只有 Application, | + | 但这样新建的文件类别(Category)里面只有 Application, |
- | 类别(Categories)决定菜单项会显示在哪。要在根菜单中显示,添加 X-Xfce-Toplevel 类别。要在子菜单中显示,添加至少一个已定义的子菜单类别。这个可以在 '' | + | 类别(Category)决定菜单项会显示在哪。要在根菜单中显示,添加 X-Xfce-Toplevel 类别。要在子菜单中显示,添加至少一个已定义的子菜单类别。这个可以在 '' |
<code xml> | <code xml> | ||
< | < | ||
Line 94: | Line 94: | ||
任何包含 Accessibility, Core, Legacy 及 Utility 类别的并没有 '' | 任何包含 Accessibility, Core, Legacy 及 Utility 类别的并没有 '' | ||
- | ===== The Other sub-menu | + | ===== " |
- | If there are any .desktop files which are configured to be displayed in the xfdesktop menu but do not have any categories which include them in any of the defined menus, the Other sub-menu will be displayed and will display those entries. | + | |
- | If you have an Other sub-menu and do not want it, copy the .desktop | + | 如果有 |
- | ===== Create sub-menus ===== | + | 如果你的系统有”其他“,但你不想要它,复制菜单项的 |
- | To create a new sub-menu, add a new " | + | |
+ | ===== 创建子菜单 ===== | ||
+ | 创建一个新的子菜单, | ||
<code xml> | <code xml> | ||
< | < | ||
Line 112: | Line 112: | ||
</ | </ | ||
- | Next, create | + | 接下来,创建 |
[Desktop Entry] | [Desktop Entry] | ||
Version=1.0 | Version=1.0 | ||
Line 121: | Line 120: | ||
Comment=Folders viewed in a file manager | Comment=Folders viewed in a file manager | ||
- | This provides the displayed name of the subdirectory as well as an appropriate icon. | + | 这提供了子目录的显示名字及合适的图标。 |
- | Finally, create .desktop files in your ~/ | + | 最后,在 |
[Desktop Entry] | [Desktop Entry] | ||
Line 136: | Line 135: | ||
Comment=home displayed in Thunar | Comment=home displayed in Thunar | ||
- | With all this in place, you should have a new submenu called | + | 做完这些,你会发现多了一个叫 |
+ | ===== 强制修改 ===== | ||
- | ===== Forcing changes ===== | + | 这通常没有必要并且不一定起作用;注销然后再进入才总是有用的。 |
- | This is not usually necessary and may not work anyway; logging out of the Xfce session and back in always works. | + | |
+ | 如果菜单没有自动更新,试一下 | ||
- | If the menu is not automatically updated with your changes, try | ||
xfdesktop --reload | xfdesktop --reload | ||
- | If that doesn' | + | |
+ | 如果没有起作用,再试一下 | ||
killall -HUP xfdesktop | killall -HUP xfdesktop | ||
- | ===== Questions | + | ===== 问题 |
==== Answered ==== | ==== Answered ==== | ||