environment for apps launched from KDE panel?
zanfur at zanfur.com
Sun Jun 9 21:15:57 PDT 2002
> I have a related question. I've noticed that whenever I add my username
> to a group, and then open up a new konsole window and type 'groups', I
> don't see the new group. I usually have to logout and login again for
> the changes to occur. Is there any way to get around this?
Nope. Not unless you're root, anyway.
What groups you are in is an attribute of the process -- like the pid and
the ppid, it also keeps track of the uid and the gid(s) of the process.
Only root can change them. What happens to give you your "permissions" is
that when you log in, the login program (or whatever) changes the uid of
the shell process to your uid, and the same occurs with the gid(s). Of
course, whenever you fork a new process it keeps all of the same uid and
gid information, so all of your new processes have the uid and gid of the
shell process. It doesn't look you up in /etc/passwd every time a new
process is forked. Of course, you have to be root in order to change the
uid or gid of a process. So, unless you're root, you have to re-login to
change the gid info of your login shell.
On Sat, 8 Jun 2002, Ryan Hennig wrote:
> Ryan Hennig
> J. Imlay wrote:
> >Are you usgin KDM? or some other display manager? Because if you are you
> >cant' expect it launch the kde process from your shell. If you are, try
> >adding the environment variables to your .Xsession
> >If your starting it with startx, then if you type env out of X and see the
> >environment variables, and then startx and they are gone. That's weird.
> >And is it just kde?
> >Josie Imlay
> >On Fri, 7 Jun 2002, Ethan Merritt wrote:
> >>I seem to have messed up something in my system configuration.
> >>Applications launched from the KDE menus and kicker bar no
> >>longer seem to execute with the proper environmental variables set.
> >>This makes many of them fail (e.g. realplayer can't find
> >>REALPLAYER_HOME). My shell is tcsh, if that makes a difference
> >>(but does KDE launch from my default shell, or does it explicitly start
> >>a new one??). I have made sure that the appropriate setenv commands
> >>are in ~/.tcshrc and also tried putting them in /etc/profile.d/xxx.csh.
> >>For completeness I also added equivalent bash commands to
> >>So what's the deal? Where/when/how does do KDE apps pick up
> >>their environmental variables?
> >>Ethan A Merritt merritt at u.washington.edu
> >>Biomolecular Structure Center Box 357742
> >>University of Washington, Seattle, WA 98195
> >>phone: (206)543-1421
> >>FAX: (206)685-7002
More information about the Linux