LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-31-2003, 08:35 AM   #1
tinesthai
LQ Newbie
 
Registered: Jan 2003
Distribution: Red Hat 8.0
Posts: 5

Rep: Reputation: 0
Unhappy confusion about starting apps in X


I know this question has been asked in one form or another but I still seem to be having problems. Please bear with me


I am running RH 8.0 with fluxbox being started from GDM.

I have read so much about all the DM's and .xinitrc and .xsession, that I think I am more confused then when I started

I just want to run some applications on startup of xbox.
I tried creating some .xinirc and .xsession files, and making sure the permissions were OK, but nothing ran.
I then tried looking up information on GDM thinking that maybe they didn't run those files.
I was looking for the "proper" way to do this on a user level instead of making these things run for all users.


man, I am so confused.
Any assistance would be greatly appreciated

thanks for your time,
TInesthai
 
Old 02-15-2003, 09:59 AM   #2
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
I think the way fluxbox works is that it executes anything specified in the ~/.fluxbox/startup script. (Your ~/.fluxbox directory has several other scripts and config files you might want to look at too).

Do 'man fluxbox' for info on how to use it. Basically you can tell fluxbox to start up with several programs already running (for example, I use it to start gkrellm). I haven't figured out yet how to tell fluxbox to *stop* them from running when it exits, though... let me know if you find out
 
Old 02-16-2003, 05:22 AM   #3
Config
Member
 
Registered: Jan 2001
Location: Switzerland
Distribution: Gentoo
Posts: 376

Rep: Reputation: 30
On my box, the file is called .xinitrc, not .xinirc. I don't know whether this is a typo, but you might want to check out. I use .xinitrc to start bbkeys on startup using blackbox...
 
Old 02-16-2003, 10:48 AM   #4
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
Re: confusion about starting apps in X

Quote:
Originally posted by tinesthai

I have read so much about all the DM's and .xinitrc and .xsession, that I think I am more confused then when I started

I just want to run some applications on startup of xbox.
~/.xinitrc is only applicable if you use "startx" from console to start X. For a more universal script (graphical login <or> console "startx") create a ~/.xsession

It will basically look like this:

sleep 2 && epist &
sleep 2 && xset m 5 3 &
sleep 3 && gkrellm -w &
#etc. etc.
#notice that all of the commands are followed by a "&"
#except for the last line,
#which is most likely exec fluxbox in your case.
exec openbox
 
Old 02-16-2003, 02:01 PM   #5
Config
Member
 
Registered: Jan 2001
Location: Switzerland
Distribution: Gentoo
Posts: 376

Rep: Reputation: 30
Hmmm... i have put bbkeys & in .xinitrc right before the Windowmanager gets started. This works for me... and I am using kdm...
 
Old 02-16-2003, 03:06 PM   #6
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
from "man startx"
Quote:
Note that in the Debian system, what many people traditionally put in the .xinitrc file should go in .xsession instead; this permits the same X environment to be presented whether startx, xdm, or xinit is used to start the X session. All discussion of the .xinitrc file in the xinit(1) manual page applies equally well to .xsession. Keep in mind that .xinitrc is used only by xinit(1) and completely ignored by xdm(1).
hmm...maybe it differs from distro to distro?
i don't think so though.

more likely, Config, your distro issues some script before/after yours -- have you checked your kdm scripts? Maybe it checks for a ~/xinitrc and runs it, or something of the sort.
 
Old 02-22-2003, 03:23 AM   #7
Config
Member
 
Registered: Jan 2001
Location: Switzerland
Distribution: Gentoo
Posts: 376

Rep: Reputation: 30
I'll check may be later, but I'm going to get rid of my SuSE anyway. Things are going to be a lot different with Gentoo
 
  


Reply



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
Starting apps after starting xfce?? gtgoku Slackware 2 08-21-2004 01:49 PM
Some apps no longer starting in X? dt23 Mandriva 6 04-20-2004 11:18 PM
Apps not starting pimver Linux - Software 3 04-07-2004 03:01 PM
auto starting apps.. newbieME Linux - Newbie 4 03-28-2003 08:20 PM
starting X apps Syncrm Linux - General 3 02-06-2002 03:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:45 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
Open Source Consulting | Domain Registration