/usr/share/doc/deskmenu/README.Debian is in deskmenu 1.4.5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | deskmenu for Debian GNU/Linux
This package of deskmenu has been patched with a diff from Martin Hedenfalk
<mhe@home.se>. This patch allows for deep submenu recursion, which in turn
allows for the debian menu-method to be available. In doing this the syntax for
the .deskmenurc has changed from the origonal syntax and is as follows:
# menuitem=label:command
# menuitem=label:command
# divider=
#
# submenu=label
# menuitem=label:command
# menuitem=label:command
# menuitem=label:command
# endmenu=
#
# divider=
# include=/path/to/include.file
# divider=
#
# windowlist=label
# workspaces=label
The example above is a little untrue, you cannot have whitespaces in front of
the menu hooks. I included them there for clarity, blank lines are ok in the
.deskmenurc file. Each time submenu= is defined it must be undefined with
endmenu=. This allows for deep recursion of submenus per the following example:
submenu=Programs
submenu=Net
submenu=Browsers
menuitem=Netscape:/usr/bin/netscape
menuitem=Mozilla:/usr/bin/mozilla
menuitem=Opera:/usr/bin/opera
endmenu=
endmenu=
endmenu=
A new menu hook has been added, it is include=
include= allows you to break your menu up into submenus, so you can have a
.deskmenurc that defines
include=~/.deskmenu/network_programs.hook
include=~/.deskmenu/remote_machines_.hook
include=~/.deskmenu/graphics_programs_hook
Each of these include files must start with the submenu= hook. The first
submenu= hook will be used to create the title (label) for the submenu on the
main menu. So network_programs.hook might look like:
submenu=NetWork
submenu=Browsers
menuitem=Netscape:/usr/bin/netscape
menuitem=Mozilla:/usr/bin/mozilla
endmenu=
submenu=Games
menuitem=Net-Toe:x-terminal-emulator -e nettoe
endmenu=
endmenu=
I hope this clears a few things up. The debian menu is located as
/etc/deskmenurc.debian and an example of it's inclusion is in the
/usr/share/doc/deskmenu/examples/example_rc file.
Brandon L. Griffith <brandon@debian.org>
|