On Wed, Mar 13, 2002 at 06:04:01PM -0500, merlin wrote: > [EMAIL PROTECTED]/2002.03.13/17:33:55 > > > >José Romildo Malaquias <[EMAIL PROTECTED]> writes: > >> > >> I am running sawfish in my Red Hat Linux 7.2 in box. The window > >> manager is being started from my ~/.Xclients file: > >> > >> [...] > >> gkrellm & > >> exec sawfish > >> [...] > >> The root menu (activated with the midle mouse button) does not > >> include the "Quit" entry. It has only the entries: Windows, > >> Workspaces, Programs, Customize and Help. How am I supposed > >> to quit the window manager? The problem arises because I > >> am not running GNOME. If so, I could just choose the "Log out" > >> entry in the GNOME menu. > >> > >> Maybe Red Hat has pre-configured sawfish to eliminate the > >> "Quit" entry from its root menu. How can I get it back so > >> that I can cleanly close sawfish? > >> > > > >I thought we did remove that menu item, and it isn't there, but I > >can't find the change anywhere in the RPM. And the Quit menu item is > >in the source code even after rpm -bp. So I have no idea how it ends > >up being removed, so I can't tell you how to get it back. > > > >Havoc > > The problem (as far as I understand it) is that the logic to determine > whether or not gnome is present (sawfish.wm.defaults) is a bit bogus; it > greps for GNOME_ in the root window's property names, which can trigger if > a gnome app is run before sawfish, even if you're not running the full > gnome environment. However, it is highly probably that you will want > the gnome state integration, even if you're not doing the full gnome > experience.
The problem persists even without any GNOME application being started. As was pointed by others, the menu entry "Customize -> Miscellaneous" opens a configuration window with the option "Invoke the GNOME control center from the 'Customize' menu", which is selected by default in my system. Deselecting it removes GNOME integration, giving back the Restart and Quit entries in the root menu, but loosing the GNOME menu entries in the Programs submenu. Related to this setting, there is a line in the ~/.sawfish/custom file: (custom-set-typed-variable (quote gnome-use-capplet) (quote t) (quote boolean) (quote sawfish.wm.gnome.integration)) > The fix that I have is the following in .sawfish/rc (or .sawfishrc). > > ; unconditionally require integration; we always want it > (require 'sawfish.wm.gnome.integration) > ; add back Quit > (require 'sawfish.wm.menus) > (require 'sawfish.wm.misc) > (nconc root-menu `(() (,(_ "Restart") restart) (,(_ "Quit") quit))) That is what I did, and I have also disabled the "gnome-use-capplet" feature as described above. Now it is working as I expected. > I personally think it's almost a bug that gnome integration is optional; > it does a lot more than the name casually suggests. Thanks. Romildo -- Prof. José Romildo Malaquias Departamento de Computação http://iceb.ufop.br/~romildo Universidade Federal de Ouro Preto [EMAIL PROTECTED] Brasil [EMAIL PROTECTED] _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list