[Sawfish] Re: root-menu/user.jl |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/sawfish Archives
]
Richard <r_j_humphreys@xxxxxxxxxxx> 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 <nowan@xxxxxxxxx>
--
Sawfish ML