File: README.debian

package info (click to toggle)
pdmenu 1.2.59
  • links: PTS
  • area: main
  • in suites: potato
  • size: 536 kB
  • ctags: 251
  • sloc: ansic: 1,999; sh: 297; perl: 75; makefile: 60
file content (38 lines) | stat: -rw-r--r-- 1,661 bytes parent folder | download | duplicates (2)
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
Automatic menu generation:
-------------------------
When used with Debian Linux, Pdmenu interfaces with Debian's "menu" package
to provide automatically generated menus of programs on your Debian system.
The autogenerated menu files are stored in two places:

/var/lib/pdmenu/.pdmenurc_auto	Global autogenerated menu file.
~/.pdmenurc_auto		Autogenerated file for a single user.

To incorporate one of these files into your pdmenu menus, use the read command 
to read it in:

read:/var/lib/pdmenu/.pdmenurc_auto

You might want to use a more complex command, like this one, which will
filter out X programs if you're not in X, etc:
preproc: \
        if tty|egrep -q "tty[0-9]|tty[0-9][0-9]|console"; then  \
                args="$args -Dvc=vc";                           \
        fi;                                                     \
        if [ $DISPLAY ]; then                                   \
                args="$args -Dx11=x11";                         \
        fi;                                                     \
        cpp /var/lib/pdmenu/.pdmenurc_auto -Dtext=text $args

This will make a menu named "/Debian" available, along with a bunch of
submenus like "/Debian/Apps" and "/Debian/Apps/Games". You can use the show
command in a menu to add an entry to the menu that displays these menus:

menu:main:Main Menu:This is a sample main menu
	show:Debian Menus..::/Debian

If you make a ~/.menu directory (see documentation of the menu package for
details), then the ~/.pdmenurc_auto file will be created when you run
update-menus. You will need to edit your ~/.pdmenurc to make it read in this 
file. 

Joey Hess <joeyh@debian.org>