-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/03/12 07:41, Paul Seelig wrote:

> Hello all,
> 




[snip]

> 
> Don't worry, the Window Maker menu is ready for being freely edited with
> the WPrefs menu editor. In any case, you really should take your time to
> go through it, because the root menu delivered with this package offers
> some advanced features not present in any other Window Maker release
> package, and which you really would like to know about. Trust me.
> 




[snip]

> 
> Rodolfo, the above described user root menu features might also be very
> welcome by users of your wonderful Debian package! Please check it out!
> 
> Please also note in the Window Maker root menu the almost identical, but
> not quite, first two sub menus from the top. The first one is the
> standard unmodified Debian menu, in all its primitive glory, while the
> second one is a very customized, streamlined version of it. The specific
> menu customizations for the affected packages are inside the ~/.menu
> folder.
> 
> Debian's menu system is really nice and flexible - if you are aware of
> its possibilities. To my (limited) knowledge, still no specialized
> graphical menu editor for the Debian menu system is available. This
> really is a shame since the Debian menu system has lots of advantages
> over the Gnome/Ubuntu/XFCE4 menu systems but, unfortunately, it just
> is not as easily accessible for normal users, which is only due to the
> lack of a suitable menu editor.
> 




[snip]

> 
> Enjoy!
> 
> Paul Seelig <[email protected]>
> 






Hi Paul,

I will try to explain how the menu is implemented in Debian. I spent a
lot of time to understand it.

1. When the user run wmaker the fist time, the wmaker script copy the
configuration to $HOME/GNUstep. One ot these files is WMRootMenu, and
this file only contains one line: "menu.hook".

2. When the wmaker script launch the wmaker binary, WindowMaker opens
WMRootMenu, and find the line "menu.hook". Then, search this file in the
configuration paths (/usr/share/WindowMaker, /etc/GNUstep/Defaults,..).
Then, the menu.hook file is found.

3. wmaker reads the menu.hook file and creates the Root Menu.

why?

1. When a new application is installed, it creates a new menu file under
/usr/share/menu/applicationname

2. The debian postinst script of the application runs /etc/menu-method/*
to refresh the menu files. One of the scripts in /etc/menu-method is
/etC/menu-methos/wmaker. This file refresh the file menu.hook, and
includes the new application.

3. If an application is removed, the postrm script removes the
/usr/share/menu/applicationname file and the /etc/menu-mehtod/wmaker
script creates a new menu.hook file

Then, the menu.hook file has always a list of the installed
applications, and the user don't need to edit the menu. If the user
wants to change their menu, can edit the WMRootMenu file (vim, emacs or
WPrefs :-) ).

IMO, it the best way to maintain a WindowMaker root menu for a system.
If the users wants a different file, they can copy the contents of
menu.root to their WMRootMenu file and edit it.

Other windowmanagers/desktop environments uses /etc/menu-methos to
generate their menus too.

Cheers.
kix
- -- 
||// //\\// Rodolfo "kix" Garcia
||\\// //\\ http://www.kix.es/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPWQyeAAoJEHsfVJByt0kjmq0P/jk4MeBwLtGneJAo8RwIn05X
qeeuZGebFXpt4dJnYlG80qjVj6PI/mjk2+Cm9Z09S23mSBE8nPWDkci8U0w98kHh
1SQyx3LGFZpVEtOgSyDU0D4OaPQXO+x/6MK+soDEQ1jyNcHymIfF8VMYYEslIyJ+
yGElC0zt2CZUNFERDodGGuJGshfGf63zy2ZhP8AonLz5AR3iOZlg+xpX+BJ37mC5
sRLpxdOEzYEMQrCb/4Q2uSnT3HpsCAQJPBPUaW4Q89ldcoFODnZnWgG9a+z5EQTY
l4pi3vRQ4+KBNOgkObfh/7/kjmO7qOmyiuBu2Q+yxA1mUG7wyV0mCzEvCSkmk7C7
KoX+g7J1MR971sqe4+7WsRyQmTz0fuLOr3jLtVvrbawRy8ntbc19tqpH9cobuouB
rd4C4svyWar6Yg6fpndbLNgoZqiekb04EIoFveJ7QDBWdL09J2EOBhUwiL6Ya7fp
KZPF4GzcwJRhwpGruDyjqgKD6Iq1KA0ANX9gw8VQiYXUSs8/1JquZIc7TaWWSdbU
Di76oleAhj1Ow8/5GYq3RYn09qYX94p6tttz3uaKaVTQIxuHHy2sc2r3a0xDlANT
B89rT2KQeDFgoZNCDOVESVZXO9CIVUmRnpcvBCyEmrkKz+ssxs/M3xxr8WcBZs6M
c6LkV1mbVG/jVn92Ryfu
=zDx0
-----END PGP SIGNATURE-----


-- 
To unsubscribe, send mail to [email protected].

Reply via email to