Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-02-2006, 02:06 PM   #1
Registered: Jan 2005
Distribution: ubuntu
Posts: 58

Rep: Reputation: 15
user-specific , window manager independent startup programs?

which file should I edit for this?

For example when i used to run kdesktop I simply made a script with the command I wanted to start at startup, and put it in /.kde/Autostart.
Now I switch my desktop- environment pretty often ( each has its own strengths), which I really love doing

So how do I setup startup programs that are user-independent as well as window-manager/environment independent. They should jsut start with X, and be use-specific.
I tried xinit,xsessions but it didn't seem to work . Or was i editing them incorrectly?
Old 11-03-2006, 11:16 AM   #2
Registered: May 2006
Location: England
Distribution: Slackware 10.2, Slamd64
Posts: 249

Rep: Reputation: 31
The theory is that ~/.xinitrc is used when X is started from the command line (i.e. startx), and ~/.xsession is used when running under a display manager. However, the primary script(s) still has to call/source the file. It sounds like ~/.xsession it not being run.

In Slackware (which also doesn't run ~/.xsession by default), the scripts to start a given windowmanager are in /etc/X11/xinit/xinitrc.<wm>. Of course, that may differ for Kubuntu, but I guess they will be somewhere under /etc/X11. One simply needs to add a line to call ~/.xsession, e.g. put a

if [ -x ~/.xsession ]; then
before the actual window manager is exec'd.

Last edited by soggycornflake; 11-03-2006 at 11:18 AM.
Old 11-04-2006, 08:32 AM   #3
Registered: Jan 2005
Distribution: ubuntu
Posts: 58

Original Poster
Rep: Reputation: 15
Still doesn't works
My /etc/X11/xinit/xinitrc
[ # global xinitrc file, used by all X sessions started by xinit (startx)
8 # invoke global X session script
9 . /etc/X11/Xsession &
11 if [ -x ~/.xsession ]; then
12 ~/.xsession &
13 fi
If I manually run "sudo ./xsession " then the apps start.

Last edited by chessonly; 11-04-2006 at 08:33 AM.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Running an application at startup for a specific user wittyguysuku Linux - General 4 09-21-2006 03:44 AM
switch to user installed window manager without root jaddison Linux - Software 13 04-13-2006 07:23 PM
startup programs via a user figmentium Linux - Newbie 6 07-03-2003 09:27 AM
User Specific Startup scripts carbonnb Linux - Newbie 2 07-02-2003 06:33 PM
Startup Programs as User Atroxic Linux - General 9 02-27-2002 09:43 PM

All times are GMT -5. The time now is 11:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration