Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gdm session independent startup programs
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
LonelyStar
Guru
Guru


Joined: 06 Dec 2005
Posts: 390

PostPosted: Wed Nov 12, 2008 1:20 pm    Post subject: gdm session independent startup programs Reply with quote

Hi,

Is there a way to make gdm startup some programs (keytouch in example) no matter wich session was selected (gnome, awesome ...)?

Thanks!
Nathan
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1471
Location: /uk/sheffield

PostPosted: Wed Nov 12, 2008 2:22 pm    Post subject: Reply with quote

Yes, put anything you want started into ~/.xinitrc and background it, e.g.

~/.xinitrc:

#!/bin/bash
firefox &


This will work independent of your choice of display manager AND your chosen desktop environment/window manager.

slack
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth


Last edited by slackline on Wed Nov 12, 2008 7:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Wed Nov 12, 2008 2:38 pm    Post subject: Reply with quote

I thought $HOME/.xinitrc is only sourced by the startx command. But I read that $HOME/.Xclients may be sourced by GDM - not sure. :?

As far as I know you can create custom sessions in GDM, but it would probably be easier to use the autostart features of your WM/DE.
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1471
Location: /uk/sheffield

PostPosted: Wed Nov 12, 2008 2:53 pm    Post subject: Reply with quote

Sorry, my mistake notHerbert is correct and you should place commands in ~/.Xclients

Detailed in the wiki I'd imagine you can just omit the call to the window manager.
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Back to top
View user's profile Send private message
LonelyStar
Guru
Guru


Joined: 06 Dec 2005
Posts: 390

PostPosted: Thu Nov 13, 2008 3:14 pm    Post subject: Reply with quote

Mmmh ...
With the .Xclient methode, the session is terminated when the .Xclient script terminates. That is not what I want, I want the session to terminate when the window manager terminates.
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1471
Location: /uk/sheffield

PostPosted: Thu Nov 13, 2008 3:25 pm    Post subject: Reply with quote

Could you post your ~/.Xclient then others may be able to comment or provide suggestions?
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Thu Nov 13, 2008 8:47 pm    Post subject: Reply with quote

Is the last line in ~/.Xclients like this?
Code:
exec <start command of some WM/DE>
Back to top
View user's profile Send private message
LonelyStar
Guru
Guru


Joined: 06 Dec 2005
Posts: 390

PostPosted: Fri Nov 14, 2008 1:27 pm    Post subject: Reply with quote

Hi,

I think it becomes unclear what I want.
The last line of my .Xclient is NOT
Code:
exec <start command of some WM/DE>

Because I start my WM choosing the appripiate session with gdm (like gnome, aweseom ...) and the *.desktop file then starts the window manager for me.

My .Xclient looks like this:
Code:

xmodmap /home/ls/.Xmodmap
#xbindkeys
keytouchd&


Meybe I should edit my *.desktop files..
I will look into that.
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Sat Nov 15, 2008 1:05 am    Post subject: Reply with quote

You can end your .Xclients file with exec <start some wm/de> and use the GDM session menu Xclients menu item. :P
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Sat Nov 15, 2008 1:10 am    Post subject: Reply with quote

On a separate footing - why do you use keytouchd ? If you are on laptop, it is not waking your CPU all the time ?
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