(menu.info)Section 6.3
6.3 Including other files
=========================
HISTORICAL COMMENT BY JOOST:
MORE OUT OF CURIOSITY THAN ANYTHING ELSE, I RECENTLY READ THE KDE
MAILING LIST. IN IT I SAW SOME DISCUSSION ABOUT HOW GOOD THE DEBIAN MENU
SYSTEM IS (WHOW, THANKS, GUYS!), BUT ONE PERSON FOUND A MISSING FEATURE:
S/HE SAID YOU COULDN'T INCLUDE OTHER FILES IN THE USER MENU FILES. WELL,
ACTUALLY, IT WAS ALREADY POSSIBLE, BUT NOT VERY WELL DOCUMENTED.
To include the contents of the file '/usr/share/menu/somefile', add this
to your menu file:
!include /usr/share/menu/somefile
Apart from that, it is of course possible to make the menu entry file
executable ('chmod a+x ~/.menu/package'), and do something like
#!/bin/sh
cat /usr/share/menu/somefile
sed -e "/unwanted_entry/s/?package(/?package(notinstalled./" \
/usr/share/menu/someotherfile
to get the same effect, with the added flexibility of being able to
filter out unwanted lines.
automatically generated by info2www version 1.2.2.9