LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 08-15-2004, 12:10 PM   #1
Swampy
Member
 
Registered: Jan 2003
Location: Dover, Kent
Distribution: Debian 6.0.1 (Squeeze)
Posts: 133

Rep: Reputation: 15
.xsession problem


I am currently running Mandrake 10.0 Official, KDM as login Manager and using fluxbox as a default desktop.

Everything's running fine, apart from the fact that I want GKrellm to start automatically when I log in.

I created a .xsession file, even tried a .xinitrc, to no avail. I've heard that the graphical login managers ignore ~/.xsession files.

Does anyone know another way to get a file to start up automatically on login, or force the login Manager to read my .xsession file? Any help would be appreciated.
 
Old 08-15-2004, 02:56 PM   #2
MunterMan
Member
 
Registered: Nov 2003
Location: The North of England
Distribution: Suse 10.3
Posts: 172

Rep: Reputation: 30
The file I use for initialisation and auto starting is

/etc/rc.d/rc.local
 
Old 08-18-2004, 03:10 AM   #3
Swampy
Member
 
Registered: Jan 2003
Location: Dover, Kent
Distribution: Debian 6.0.1 (Squeeze)
Posts: 133

Original Poster
Rep: Reputation: 15
Hi, Munterman.

I added the following line to the bottom of my rc.local file:

gkrellm -w &

rebooted & nothing happened.

I see that there is a file called

/etc/X11/Xsession

with various options in it. Does anyone know if this is actually used?
 
Old 08-18-2004, 08:04 AM   #4
MunterMan
Member
 
Registered: Nov 2003
Location: The North of England
Distribution: Suse 10.3
Posts: 172

Rep: Reputation: 30
Xsession is a shell script for configuring your xterminal.

In rc.local use the full path of the binary ie

/etc/bin/gkrellm -w &
 
Old 08-18-2004, 10:33 AM   #5
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
The file I use to start up my X sessions is called

~/.xinitrc

I start all my apps including gkrellm with it, and then IceWM as the last thing. It works fine.
 
Old 10-08-2004, 09:07 AM   #6
Swampy
Member
 
Registered: Jan 2003
Location: Dover, Kent
Distribution: Debian 6.0.1 (Squeeze)
Posts: 133

Original Poster
Rep: Reputation: 15
Finally realised what was up. Stupid of me really..

I created a .xsession file, containing the following line:

exec /usr/X11R6/bin/fluxbox

when I logged out, instead of selecting a specific Window Manager as a Session Type, as is my usual, I selected "default"

KDM then read my .xsession file and started fluxbox automatically.

Now that .xsession is definately being read I can now add the apps I want to start to the file.
 
Old 10-08-2004, 10:50 AM   #7
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
Quote:
Originally posted by Swampy
Finally realised what was up. Stupid of me really..

I created a .xsession file, containing the following line:

exec /usr/X11R6/bin/fluxbox

when I logged out, instead of selecting a specific Window Manager as a Session Type, as is my usual, I selected "default"

KDM then read my .xsession file and started fluxbox automatically.

Now that .xsession is definately being read I can now add the apps I want to start to the file.
Glad your problem is solved...

I don't think you should feel "stupid" though. Dealing with something as complex as a computer operating system, especially one that's open-source and requires piecing together a lot of stuff for yourself (no giant megalithic corporation to hold your hand! ), there's so much opportunity to get something wrong--especially if, as with some of us, we have other things in our lives going on besides Linux!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Fluxbox .xsession file. ned99 Linux - Newbie 7 10-23-2005 01:40 PM
Where is ~/.xsession ? Frybyte Linux - General 4 10-20-2004 04:44 PM
.xsession LoONeYChIKuN Linux - Newbie 2 10-18-2004 11:59 PM
XSession Number of Colors Problem partyman6666 Solaris / OpenSolaris 0 01-07-2004 09:17 AM
Login/xsession Problem aquaphile Linux - General 11 11-06-2003 05:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 10:03 AM.

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