Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-18-2003, 10:19 AM   #1
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, 05:42 PM   #2
LQ Guru
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

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


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 08:17 PM
where is ~/.bash_profile? Jskill007 Slackware 4 09-18-2004 12:04 AM
.bash_profile sikandar Linux - Software 9 08-31-2003 11:01 AM
.bash_profile Wasim Haider Linux - General 2 09-16-2002 08:12 AM
.bash_profile question abyss Linux - General 7 03-19-2002 12:04 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:48 PM.

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