LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   .bash_profile question (https://www.linuxquestions.org/questions/linux-newbie-8/bash_profile-question-50437/)

jalburger 03-18-2003 09:19 AM

.bash_profile question
 
Hello. I am using RH 5.0 and running the window manager Gnome. I seem to have a problem with my ~/.bash_profile being executed 2 times when I log in. I am attempting to display a single xmessage upon login, but 2 are showing up.

The line in my ~/.bash_profile is :
xmessage "this is a test"
When I hit "OK" on this xmessage, another pops up.

From a remote login from another box, I can see that the first xmessage seems to be spawned from:
-bin/bash /etc/X11/gdm/Sessions/Default

The second xmessage spawned from:
bash -login /etc/X11/xdm/Xsession

Anybody have any ideas on why this happens and how to prevent it?

Thanks in advance for your help!

mhearn 03-18-2003 04:42 PM

You want to put startup stuff in ~/.xinitrc


All times are GMT -5. The time now is 04:39 PM.