Re: Gnome applications and .bash_profile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/02/09 12:20, quoth Jonathan Ryshpan:
> On Sat, 2009-10-31 at 21:34 -0500, Mikkel wrote:
>> Jonathan Ryshpan wrote:
>>> It looks like environment variables set in .bash_profile are visible to
>>> applications started in gnome but not via a shell.  For example 
>>> evolution knows when I modify LC_COLLATE.
>>> 
>> It depends on the type of shell. Only a login shell reads .bash_profile.
>> If you are starting a (x)terminal, and launching the program from there,
>> the default is not to run your as a login shell.
> 
> Thanks to all for your advice on this.  However I have a *question* and not
> a *problem*.  I have LC_COLLATE=POSIX in .bash_profile and not in .bashrc,
> and everything is working just as I would like it to.  If I find problems
> in the future, I may move it into .bashrc, which is invoked from
> .bash_profile, in exactly the way that Suvayu Ali recommended; this method
> is in the standard .bash_profile located in /etc/skel.
> 
> My *question* is what process is reading .bash_profile and acquiring 
> LC_COLLATE=POSIX.  Let me repeat it:
> 
> The invocation chain for evolution, namely:
> 
> $ ps fax ... 1710 ?        Ss     0:00 /usr/sbin/gdm-binary -nodaemon 14284
> ?        S      0:00  \_ /usr/libexec/gdm-simple-slave --display-id
> /org/gnome/Disp 14285 tty7     Ss+    0:43      \_ /usr/bin/Xorg :0 -br
> -verbose -auth /var/run/gdm/auth- 14366 ?        S      0:00      \_ pam:
> gdm-password 14413 ?        Ssl    0:00          \_ gnome-session 14523 ?
> Sl     0:00              \_ metacity 14536 ?        S      0:00
> \_ gnome-panel 14537 ?        S      0:00              \_ nautilus 14542 ?
> S      0:00              \_ /bin/sh /usr/lib64/firefox-3.5.4/run-mozilla.s 
> 14651 ?        Sl     0:41              |   \_
> /usr/lib64/firefox-3.5.4/firefox 14543 ?        Sl     0:17              \_
> evolution ...
> 
> doesn't show a shell of any kind anywhere between gdm, which manages the 
> login screen, and evolution, which knows that LC_COLLATE=POSIX.  Very 
> likely the good guy is gnome-session.  Maybe I should examine the 
> gnome-session code (What's open source for, anyway?), but I have been too
> lazy.
> 
> Thanks to all - jon
> 
> 

Great question. The answer is that if gnome-session is not a bash process then
it is probably the result of a bash process that became gnome-session after
running the xinit component and then doing an exec. The exec results in
gnome-session and preservation of the established environment.

See my reply to Suvayu dated 12:57 EST.



-- 
Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux