LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-26-2004, 12:05 PM   #1
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
.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?

Last edited by shanenin; 10-26-2004 at 12:09 PM.
 
Old 10-26-2004, 12:44 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Try putting it in your .xinitrc file.
 
Old 10-26-2004, 12:48 PM   #3
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
I think the .xinitrc file only gets run when you start x using the command startx.
 
Old 10-26-2004, 01:14 PM   #4
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
for the .xsession file to be used, I need to choose custom session from GDM's menu.
 
  


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
.xsession script? shanenin Linux - Software 3 10-27-2004 02:01 PM
Where is ~/.xsession ? Frybyte Linux - General 4 10-20-2004 05:44 PM
.xsession LoONeYChIKuN Linux - Newbie 2 10-19-2004 12:59 AM
Invoke script on xsession exit? comp12345 Linux - Software 1 06-27-2004 11:27 PM
X11 doesn't use Xsession jogurt666 Debian 3 03-09-2004 06:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:51 PM.

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