[97137] in RedHat Linux List
Re: Menu Problems
daemon@ATHENA.MIT.EDU (Tony Nugent)
Sun Nov 1 11:39:14 1998
To: whiplash <whiplash@neosoft.com>
Cc: redhat-list@redhat.com, redhat-devel-list@redhat.com
In-Reply-To: message-id <363BE0BE.E897DE62@neosoft.com>
of Sat, Oct 31 22:17:03 1998
Date: Mon, 02 Nov 1998 02:51:01 +1000
From: Tony Nugent <Tony.Nugent@usq.edu.au>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
On Sat Oct 31 1998 22:17, whiplash wrote:
[originally posted to redhat-disgest (should this be allowed?), but posted
back to redhat-list and also to redhat-devel-list]
> Hey everyone!! I have a quick question or two...... I have
> recently added some menu options to my start menu (the little one that
> pops up when you click the desktop) and I'm using the AfterStep desktop
> theme. When I add them, I just go and do a quick refresh of the WM and
> everything works peachy. After I log out or restart, the options don't
> show back up when I click the desktop, I just get the default menu. As
> root, when I go to GNUstep/Library/AfterStep/start, my stuff is there,
> but it isn't reloading into the menu. As a regular user, it's
> usr/share/afterstep/start. As either user, I get the stuff just after I
> create it in the menu, but not after a logout or restart. Am I missing
> something here?? The wierd thing is...... I have added some trick
> desktop pictures, and they show up just like I left them, or on the last
> one that I selected before I logged out or restarting. Why aren't these
> menu options reloading while the background pic is?? Hmmm....
> Thanks for any help anybody might give.........
I also use afterstep. But as I was using my own ~/.xinitrc file to start
it, I didn't discover this problem until yesterday (when I fiddled with
starting via /etc/X11/Xclients and a ~/.wm_style file). I also lost a
fair wack of my own hard work in how I had reconfigured afterstep's menus
:(
I think that this is a bug - or at least an oversight in the xinitrc
package.
What Xclients does is *unconditionally* run wmconfig each time an afterstep
session is stated up - which results in the default startup menu (and a few
other things - not everything, fortunately!) being set up again each time,
overwriting any changes that a user may have made. Without editing the
Xclients script, it is impossible to avoid this from happening.
wmconfig is a handly tool, but used in this way is just not fair. And why
does it insist on deleting stuff it doesn't happen to know about in the
/start/ directory? It should leave things alone!
If there was another tool that could save a user's configuration for
wmconfig to use, then that would be helpful. As would a tool to help edit
the ~/GNUstep/Library/AfterStep/wmconfig.conf file to put your own defaults
into it. (The format of this file is weird... what's with all the "auto"
stuff?)
To me it seems that what should happen in /etc/X11/xinit/Xclients is that
if a ~/GNUstep/Library/AfterStep/wmconfig.conf file is found, then wmconfig
should not be run at all - on the assumption that it has already be run
once to initially set up the user's configuration. Just IMHO.
But perhaps I'm missing something here myself... ??
To help out "whiplash"... the easiest why to stop this from happening is to
create a ~/.xinitrc file - it should be an executable script, it is run by
xinit (see the man page), it can do all sorts of user-land magic (like set
up your Xauthority etc), and then have it start up the window manager like
this:
exec /usr/X11R6/bin/afterstep
This way, the Xclients script is never touched, wmconfig never run, and
any reconfiguration is never lost.
Cheers
Tony
-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-
Tony Nugent <Tony.Nugent@usq.edu.au> <linux@usq.edu.au>
Computer Support Officer Faculty of Science
University of Southern Queensland, Toowoomba Oueensland Australia
-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-
** Hello and Welcome to the Psychiatric Hotline **
If you are obsessive-compulsive, please press 1 repeatedly.
If you are co-dependent, please ask someone to press 2.
If you have multiple personalities, please press 3, 4, 5 and 6.
If you are paranoid-delusional, we know who you are and what you want
- just stay on the line so we can trace the call.
If you are schizophrenic, listen carefully and a little voice will
tell you which number to press next.
If you are manic-depressive, it doesn't matter which number you press
- no one will answer.
If you suffer from panic attacks, push every button you can find.
If you are sane, please hold on - we have the rest of humanity on the
other line and they desparately want to ask a few questions.
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.