Adding apps to the X windows menus

Adding apps to the X windows menus


Author: W. Wade, Hampton
Email: whampton@staffnet.com

System Architecture: All/General
RedHat Release: RHL 5.1 (Manhattan)
FAQ Category: Application Notes
Modification Date: Oct 19, 1998

Question:

How do I add applications to my X windows menus?

Answer:

The solution to adding applications to your X menus is the wmconfig
utility provided with 5.x.  RTMF man page for wmconfig for all the
window managers that it can setup menus for.  By default, the scripts
that came with 5.x use wmconfig to build FVWM menus from files located
in /etc/X11/wmconfig.  

1)  su - root
2)  cd /etc/X11/wmconfig
3)  vi xwp
4)  xwp name "WordPerfect"
    xwp description "Corel WordPerfect"
    xwp icon "textedit.xpm"
    xwp mini-icon "mini-edit.xpm"
    xwp group "Applications"
    xwp exec "/opt/wp7.0/wpbin/xwp &"

5) restart FVWM (don't have to restart X)

Notes:
  see man wmconfig for name, icon, mini-icon, exec...
  exec is the command line for the program.

Icons are located in:
  /usr/share/icons and /usr/share/icons/mini

It is HIGHLY recommended that new applications come with wmconfig
entries in their RPM files!

References:

man wmconfig