LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-18-2003, 09:19 AM   #1
jalburger
LQ Newbie
 
Registered: Jul 2002
Posts: 4

Rep: Reputation: 0
.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!
 
Old 03-18-2003, 04:42 PM   #2
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 47
You want to put startup stuff in ~/.xinitrc
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
.bash_profile question Gald3r Linux - Newbie 8 09-20-2005 07:17 PM
where is ~/.bash_profile? Jskill007 Slackware 4 09-17-2004 11:04 PM
.bash_profile sikandar Linux - Software 9 08-31-2003 10:01 AM
.bash_profile Wasim Haider Linux - General 2 09-16-2002 07:12 AM
.bash_profile question abyss Linux - General 7 03-19-2002 11:04 AM


All times are GMT -5. The time now is 10:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration