Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
who runs the scripts under /etc/X11/xinit/xinitrc.d/
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
shallpion
Guru
Guru


Joined: 29 Sep 2008
Posts: 331

PostPosted: Tue Sep 08, 2009 6:48 am    Post subject: who runs the scripts under /etc/X11/xinit/xinitrc.d/ Reply with quote

Hi guys. I am using gnome and I wonder who is running the scripts under /etc/X11/xinit/xinitrc.d/. According to /etc/X11/gdm/Xsession I guess it should be
gdm since I am not using startx to start the X. But one thing interesting is that today I created a script /etc/X11/xinit/xinitrc.d/myscript to run a program with
personal configuration in my home directory. I thought it should be the "system" or "root" running the scripts under /etc/X11/xinit/xinitrc.d/, so there should
be no way that the program launched by the /etc/X11/xinit/xinitrc.d/myscript can read my configuration. But wonderfuly I found it did. It seems that gdm
runs all of the scripts under /etc/X11/xinit/xinitrc.d/ after the user has login. Am I right? I guess that is why the scripts under /etc/X11/xinit/xinitrc.d/
need o+x...

Thanks a lot, I am a little confused about the starting-up process of gdm.....
Back to top
View user's profile Send private message
Raniz
l33t
l33t


Joined: 13 Sep 2003
Posts: 967
Location: Varberg, Sweden

PostPosted: Thu Sep 10, 2009 7:01 am    Post subject: Reply with quote

I'm pretty sure that gdm runs any script as the user that has logged in.

An easy way to check it is to write a session that logs your username and then exits.

Code:
!/bin/sh
echo $USER > /tmp/gdm-user
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