View previous topic :: View next topic |
Author |
Message |
shallpion Guru
Joined: 29 Sep 2008 Posts: 331
|
Posted: Tue Sep 08, 2009 6:48 am Post subject: who runs the scripts under /etc/X11/xinit/xinitrc.d/ |
|
|
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 |
|
|
Raniz l33t
Joined: 13 Sep 2003 Posts: 967 Location: Varberg, Sweden
|
Posted: Thu Sep 10, 2009 7:01 am Post subject: |
|
|
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 |
|
|
|