Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] I want GDM to use ~/.xsession
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
Stormy Eyes
Veteran
Veteran


Joined: 09 Apr 2003
Posts: 1064
Location: Watching God spit-shine my boots.

PostPosted: Thu Sep 16, 2004 3:33 pm    Post subject: [SOLVED] I want GDM to use ~/.xsession Reply with quote

Now that I've installed xorg-x11 6.8.0 and have composite and xcompmgr working, my fiancee and I have modified our ~/.xsession files to start xcompmgr in the background before running Openbox. This works fine with XDM, but XDM is ugly and hurts my lady's eyes. We find GDM easier to look at, but I've read the GDM manual, poked around the config files, and googled, but I haven't seen anything about making GDM honor users' ~/.xsession files. I'm tempted to create files in /usr/share/xsessions that call the ~/.xsession scripts, one for me and one for her, but that's a crude solution.

Last edited by Stormy Eyes on Fri Sep 17, 2004 12:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
Stormy Eyes
Veteran
Veteran


Joined: 09 Apr 2003
Posts: 1064
Location: Watching God spit-shine my boots.

PostPosted: Thu Sep 16, 2004 5:54 pm    Post subject: Reply with quote

OK, screw it. I'll just put a script in /usr/local/bin that does what needs to be done and create a file in /usr/share/xsessions to call that script. The only differences between my session and my lady's is the wallpaper we favor, anyway. *shrug*
Back to top
View user's profile Send private message
hoarycripple
n00b
n00b


Joined: 11 Mar 2003
Posts: 42

PostPosted: Thu Sep 16, 2004 5:59 pm    Post subject: Reply with quote

You can make gdm use your ~/.xsession files as follows:

edit ~/.xinitrc to contain your scrtipt, then make a symlink from ~/.xsession to ~/.xinitrc.

Then when you get to gdm, choose "sessions" and then choose "custom session" (or something like that). That will load your ~/.xsession

This is exactly what I do on all my computers.

HTH!
Back to top
View user's profile Send private message
Stormy Eyes
Veteran
Veteran


Joined: 09 Apr 2003
Posts: 1064
Location: Watching God spit-shine my boots.

PostPosted: Thu Sep 16, 2004 6:09 pm    Post subject: Reply with quote

hoarycripple wrote:
You can make gdm use your ~/.xsession files as follows:

edit ~/.xinitrc to contain your scrtipt, then make a symlink from ~/.xsession to ~/.xinitrc.

Then when you get to gdm, choose "sessions" and then choose "custom session" (or something like that). That will load your ~/.xsession

This is exactly what I do on all my computers.

HTH!


Let me see if I've got this straight. I edit ~/.xinitrc and then symlink ~/.xsession to ~/.xinitrc? If I'm not misunderstanding you, wouldn't the creation of the symlink overwrite ~/.xinitrc? Or are you doing "ln -s ~/.xinitrc ~/.xsession"?
Back to top
View user's profile Send private message
hoarycripple
n00b
n00b


Joined: 11 Mar 2003
Posts: 42

PostPosted: Thu Sep 16, 2004 6:13 pm    Post subject: Reply with quote

It doesn't overwrite xinitrc.
Code:

ln -s ~/.xinitrc ~/.xsession
Back to top
View user's profile Send private message
Stormy Eyes
Veteran
Veteran


Joined: 09 Apr 2003
Posts: 1064
Location: Watching God spit-shine my boots.

PostPosted: Thu Sep 16, 2004 6:15 pm    Post subject: Reply with quote

hoarycripple wrote:
It doesn't overwrite xinitrc.
Code:

ln -s ~/.xinitrc ~/.xsession


OK. For a minute I thought you were telling me to do "ln -s ~/.xsession ~/.xinitrc", which would overwrite xinitrc. Thanks; I'll give this a try tonight after work.
Back to top
View user's profile Send private message
hoarycripple
n00b
n00b


Joined: 11 Mar 2003
Posts: 42

PostPosted: Thu Sep 16, 2004 6:22 pm    Post subject: Reply with quote

Sure, let me know if it works for you.
Back to top
View user's profile Send private message
Stormy Eyes
Veteran
Veteran


Joined: 09 Apr 2003
Posts: 1064
Location: Watching God spit-shine my boots.

PostPosted: Fri Sep 17, 2004 12:42 pm    Post subject: Reply with quote

Hoarycripple, your method worked perfectly. Thanks!
Back to top
View user's profile Send private message
torklingberg
Tux's lil' helper
Tux's lil' helper


Joined: 30 May 2004
Posts: 86

PostPosted: Sat Oct 23, 2004 12:26 pm    Post subject: Reply with quote

I tried this, but then it didn't start Gnome but twm or something.

How can such a simple thing as "autorun" be such a mess?
Back to top
View user's profile Send private message
Solution_9
Guru
Guru


Joined: 22 Jun 2003
Posts: 311

PostPosted: Sun Oct 24, 2004 11:43 pm    Post subject: Reply with quote

Ya i have exactly the same problem. All it does is startup TWM when i goto custom session.
_________________
"The X server has to be the biggest program I've ever seen that doesn't do anything for you."
- Ken Thompson
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