Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-11-2004, 02:27 AM
|
#1
|
Member
Registered: Oct 2004
Location: Tartu, Århus,Nürnberg, Europe
Distribution: Debian, Ubuntu, Puppy
Posts: 619
Rep:
|
gdm + .bash_profile
Hi everybody,
I noticed that my new debian/sarge system does not execute .bash_profile if logged in from gdm, neither for gnome session nor X-session. This does not happen on my RH9.
Googling around gave some similar posts, the most realistic solution seems to be to hack the startup scripts and replace #!/bin/bash by #!/bin/bash -login in the relevant ones. However, this seems not to be a neat way to do it.
Does anybody have a better idea? Does anybody know why it is so?
Thanks in advance,
Ott
|
|
|
10-11-2004, 03:13 AM
|
#2
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
I don't know if this is what you're looking for but you might want to add this to .bashrc
if [ -f ~/.bash_profile ]; then
source ~/.bashr_profile
fi
|
|
|
10-11-2004, 03:19 AM
|
#3
|
Member
Registered: Nov 2003
Location: Australia
Distribution: Mandrake, SUSE, Fedora
Posts: 122
Rep:
|
I remember having a similar problem with .bash_profile not being loaded under an X session. One way to fix it would be to edit /etc/X11/xdm/Xsession to replace "#!/bin/bash" with "#!/bin/bash --login" as you mentioned. I had compared a couple of distros at the time and that file seems to contain that difference.
|
|
|
10-18-2004, 12:47 AM
|
#4
|
Member
Registered: Oct 2004
Location: Tartu, Århus,Nürnberg, Europe
Distribution: Debian, Ubuntu, Puppy
Posts: 619
Original Poster
Rep:
|
Thanks for your answer. As my wife has almoust occupied my computer, I hadn't the possibility (and need) to check it until now. The place to check is
/etc/gdm/Xsession
and I replaced #!/bin/sh to #!/bin/bash --login
I don't think it helps to read .bash_profile into .bashrc. The latter one is not started at all when non-interactive and hence e.g. window manager don't know anything about my personal environment setup. And hence everything I am starting using mouse.
Thanks anyway.
Best,
Ott
|
|
|
All times are GMT -5. The time now is 01:11 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|