LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

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

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
soggycornflake
Member
 
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

Code:
if [ -x ~/.xsession ]; then
    ~/.xsession
fi
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
chessonly
Member
 
Registered: Jan 2005
Distribution: ubuntu
Posts: 57

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

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


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 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 07:01 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration