LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   .xsession script? (https://www.linuxquestions.org/questions/linux-software-2/xsession-script-247509/)

shanenin 10-26-2004 11:05 AM

.xsession script?
 
I need a command run when I start X using gdm. I am using the file .xsession to try to accomplish this. Here is what it looks like
Code:

#!/bin/sh
/usr/bin/xvattr -a XV_COLORKEY -v 0

this file is executable
Code:

shane@mainbox shane $ ls -l .xsession
-rwxr-xr-x  1 shane users 47 Oct 26 10:46 .xsession

This script is not getting ran when gdm starts X, am I using this incorrectly?

bigrigdriver 10-26-2004 11:44 AM

Try putting it in your .xinitrc file.

shanenin 10-26-2004 11:48 AM

I think the .xinitrc file only gets run when you start x using the command startx.

shanenin 10-26-2004 12:14 PM

for the .xsession file to be used, I need to choose custom session from GDM's menu.


All times are GMT -5. The time now is 09:31 PM.