LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 08-24-2006, 11:16 AM   #1
jabran
LQ Newbie
 
Registered: Jun 2005
Distribution: Ubuntu 6.06
Posts: 20

Rep: Reputation: 0
How to execute some command on GDM Login and Logout?


Hi,

How we can configure a script to be executed automatically on GDM login, as well as on logout? Actually I want to synchronize two directoris on login and logout using unison ($unison ~/dir1 ~/dir2 -batch). The command works correctly from command line.

I tried adding the command to following files, but no luck:

1- .bash_profile: Its not executed when logging in through GDM.
2- .gnomerc: Its executed on GDM Login
3- ?? :Which script executes on Logout?


Any ideas?

Jabran
 
Old 08-24-2006, 11:22 AM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Put it in ~/.xinitrc - that's the file that X Window executes before it starts.
 
Old 08-24-2006, 11:55 AM   #3
jabran
LQ Newbie
 
Registered: Jun 2005
Distribution: Ubuntu 6.06
Posts: 20

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by ramram29
Put it in ~/.xinitrc - that's the file that X Window executes before it starts.
I do not want to execute the command on Xwdinows startup, but only when a user logs in through GDM, and then second time when he/she logs out of gnome.

Thanks for any further hint.
 
  


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
Re-login on logout freestyle Linux - Software 2 07-25-2006 10:43 AM
login/logout command zacherrin Linux - Newbie 8 02-10-2006 12:36 AM
ShutDown/Reboot using "KDE graphical logout" and GDM ? tsiMental Ubuntu 2 08-08-2005 11:54 AM
remote command execute telnet with 1 command MPowers Linux - Networking 2 06-30-2005 07:31 AM
Lose IP when logout (in) through gdm wmcase Linux - Networking 0 11-18-2004 04:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:53 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