LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-09-2003, 02:58 PM   #1
ja_nch
LQ Newbie
 
Registered: Sep 2003
Location: Costa Rica
Distribution: RED HAT 9
Posts: 18

Rep: Reputation: 0
.bash_login .bash_logout on KDE and GNOME


Hi.

I need to ensure a scrpit01.sh file is executed after login and that a script.02.sh file is executed during logout.

I have read that that can be achieved through including the commands into the .bash_login and .bash_logout of the home directory, but even though I already done so, the commands never get executed.

I think there could be some differences when logging in using GNOME or KDE so may be somebody know on this may help me.

Advise will be very much appreciated.

Thanks

JN
 
Old 10-09-2003, 08:12 PM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Probably the easiest way would be to edit startkde script. Look for the line that starts kde and put the kde startup script there. Then at the end of the startkde script you could put the kde shutdown script:

Code:
# In case of dcop sockets left by a previous session, cleanup
dcopserver_shutdown
/path/to/kdestartupscript
echo 'startkde: Starting up...'  1>&2
...
...
...

echo 'startkde: Done.'  1>&2
/path/to/kdelogoutscript

Last edited by /bin/bash; 10-09-2003 at 08:13 PM.
 
Old 10-09-2003, 08:28 PM   #3
ja_nch
LQ Newbie
 
Registered: Sep 2003
Location: Costa Rica
Distribution: RED HAT 9
Posts: 18

Original Poster
Rep: Reputation: 0
Where is it typically located and named

Sounds good, but, when is it typically located and what is its name? (of the script)

Also, I see this would work for KDE... any idea with GNOME?

THKS.
 
Old 10-09-2003, 09:09 PM   #4
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Mine is /usr/bin/startkde but typically it would be /opt/kde3/bin/startkde
Try which startkde
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE/GNOME switching? And how to connect to the internet in GNOME SuSE 10.0 Cards_STL SUSE / openSUSE 14 10-29-2005 07:21 PM
.bash_logout file is not runing on logout Mordeth_0 Linux - Newbie 9 08-19-2004 06:11 PM
commnds placed in .bash_logout not working rddreamz Programming 1 06-05-2004 05:57 PM
.bash_logout does not get executed nearfar Linux - Newbie 3 10-17-2003 11:40 AM
.bash_logout act weird!? IamDaniel Slackware 7 06-17-2003 12:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:36 AM.

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
Open Source Consulting | Domain Registration