Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
auto run program as user on login with gdm
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
nianderson
Guru
Guru


Joined: 06 May 2003
Posts: 369
Location: Lawrence, KS

PostPosted: Wed Nov 03, 2004 4:30 am    Post subject: auto run program as user on login with gdm Reply with quote

I am using gdm to have users login. Also using evilwm I want certain apps to start immideatly after they login. But i also want the apps to start as thier user not as root. Currently I can use PostLogin directory scripts to run processes as root but is there any way to have whatever user is logged in start the process?
Back to top
View user's profile Send private message
baeksu
l33t
l33t


Joined: 26 Sep 2004
Posts: 609
Location: Seoul, Korea

PostPosted: Sun Nov 07, 2004 2:18 pm    Post subject: Reply with quote

If you use the "custom" session in gdm, it will try to execute the .xsession script in your home folder. So you can put programs there that will get autostarted then as a user. Like having something like
Quote:
xmms &
xcompmgr -c &
exec myfavoritewm


will start xmms and composites everytime you log in through gdm.
_________________
Gnome:
1. A legendary being.
2. A never ending quest to make unix friendly to people who don't want unix and excruciating for those that do.
Back to top
View user's profile Send private message
nianderson
Guru
Guru


Joined: 06 May 2003
Posts: 369
Location: Lawrence, KS

PostPosted: Mon Nov 08, 2004 2:03 am    Post subject: Reply with quote

thx :)
Back to top
View user's profile Send private message
nianderson
Guru
Guru


Joined: 06 May 2003
Posts: 369
Location: Lawrence, KS

PostPosted: Tue Nov 09, 2004 2:22 am    Post subject: Reply with quote

humm when i login with Custom Session it dosnt seems to work quite right.

nothing i have in my .xsession file is launching

in fact twm keeps launching even though i have exec /usr/bin/evilwm -snap 6 -bw 0 &
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum