View previous topic :: View next topic |
Author |
Message |
LonelyStar Guru
Joined: 06 Dec 2005 Posts: 390
|
Posted: Wed Nov 12, 2008 1:20 pm Post subject: gdm session independent startup programs |
|
|
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 |
|
|
slackline Veteran
Joined: 01 Apr 2005 Posts: 1471 Location: /uk/sheffield
|
Posted: Wed Nov 12, 2008 2:22 pm Post subject: |
|
|
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 |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Wed Nov 12, 2008 2:38 pm Post subject: |
|
|
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 |
|
|
slackline Veteran
Joined: 01 Apr 2005 Posts: 1471 Location: /uk/sheffield
|
Posted: Wed Nov 12, 2008 2:53 pm Post subject: |
|
|
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 |
|
|
LonelyStar Guru
Joined: 06 Dec 2005 Posts: 390
|
Posted: Thu Nov 13, 2008 3:14 pm Post subject: |
|
|
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 |
|
|
slackline Veteran
Joined: 01 Apr 2005 Posts: 1471 Location: /uk/sheffield
|
Posted: Thu Nov 13, 2008 3:25 pm Post subject: |
|
|
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 |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Thu Nov 13, 2008 8:47 pm Post subject: |
|
|
Is the last line in ~/.Xclients like this?
Code: | exec <start command of some WM/DE> |
|
|
Back to top |
|
|
LonelyStar Guru
Joined: 06 Dec 2005 Posts: 390
|
Posted: Fri Nov 14, 2008 1:27 pm Post subject: |
|
|
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 |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Sat Nov 15, 2008 1:05 am Post subject: |
|
|
You can end your .Xclients file with exec <start some wm/de> and use the GDM session menu Xclients menu item. |
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3267 Location: Canada
|
Posted: Sat Nov 15, 2008 1:10 am Post subject: |
|
|
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 |
|
|
|