Re: root-menu/user.jl

Jeremy Hankins <[email protected]>
Newsgroups gmane.comp.window-managers.sawfish
Message-ID <[email protected]>
Richard <[email protected]> writes:

> I was tinkering with my root menu and noticed that whatever changes I
> make in my rc, the system seems to be altering the menu after I have
> set it.

A simple solution, if you don't want those changes, would be to define
your own menu and replace bindings for (popup-root-menu) with
(popup-menu my-menu).  That has the advantage of preserving the default
root menu in case you want to use it some other way -- e.g., as a
sub-menu of your own menu or via a different keybinding.

> I managed to track down the code to user.jl but I am not sure how I am
> supposed to suppress this through settings in the rc file.
>
> One undesired effect (all that reboot/logout nonsense) can be avoided
> by renaming the 'Session' submenu, but that seems like a bit of a
> kludge.
>
> The other effect ('Open home directory' and 'kill window') are being
> added to the menu and I can see no way for me to stop this.
>
> I can remove these by running another script after sawfish has started
> - but that seems to be missing the point: I thought that I should be
> making all 'setup' code to the rc file? Are these menu items really
> supposed to be compulsory?

Some things are run late in user.jl because they depend on the sawfish
state at the time; whether these are examples of that I'm not sure.  A
general-purpose solution that's better than manually running another
script would be to add something to after-initialization-hook.  It's a
bit klugy, but that way you at least don't have to remember to run the
script.

-- 
Jeremy Hankins <[email protected]>

-- 
Sawfish ML
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.