You are not logged in.

#1 2006-07-06 03:51:42

battra
Member
From: Earth.US.Illinois.Chicago
Registered: 2006-05-12
Posts: 71

~/.fluxbox/startup not being executed by fluxbox (SOLVED)

It doesn't appear that my ~/.fluxbox/startup file is being executed when I run fluxbox.   No matter what I put in, nothing happens.

Here's my ~/.fluxbox/startup file:

#!/bin/sh
fbsetbg -f /home/myuser/backgrounds/ArchBlue.png

# garbage command for testing
/usr/bin/asdfasdfadsfadfadsf
exit 0

None of the commands I put in this file are executed when I start fluxbox.  Fluxbox starts with no problem, though when I type startx with "exec fluxbox" in my .xinitrc.

Any ideas why it isn't being executed?


"I know nothing except the fact of my ignorance."
- Socrates

Offline

#2 2006-07-06 04:11:29

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: ~/.fluxbox/startup not being executed by fluxbox (SOLVED)

when you start fluxbox in your ~/.xinitrc, use 'startfluxbox' instead of fluxbox.

James

Offline

#3 2006-07-06 05:27:01

battra
Member
From: Earth.US.Illinois.Chicago
Registered: 2006-05-12
Posts: 71

Re: ~/.fluxbox/startup not being executed by fluxbox (SOLVED)

Thanks, iphitus.

For some reason, I'm not able to start fluxbox using "startfluxbox" or "exec startfluxbox" (placed in .xinitrc).  However, I am able to start it up when I put "exec fluxbox" in .xinitrc.   (I'm starting X and fluxbox using startx command and .xinitrc).  When typing startx with "exec startfluxbox" in my .xinitrc, the deskop appears for a second and dies.

The warnings that appear on the screen when sucessfully using "exec fluxbox" and the warnings that appear when unsuccessfully using "startfluxbox" are identical, so I don't think they would shed light on why one works and the other doesn't.

Any suggestions for how to go about figuring out why startfluxbox won't work?  Is there a log somewhere for fluxbox errors?  Can't find anything in /var/log.

Thanks.


"I know nothing except the fact of my ignorance."
- Socrates

Offline

#4 2006-07-06 05:49:02

ScriptDevil
Member
From: In Front of My PC
Registered: 2006-04-06
Posts: 253

Re: ~/.fluxbox/startup not being executed by fluxbox (SOLVED)

in .fluxbox/init type
session.screen0.rootCommand: fbsetbg -f /home/myuser/backgrounds/ArchBlue.png


Be yourself, because you are all that you can be

Offline

#5 2006-07-06 05:57:39

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: ~/.fluxbox/startup not being executed by fluxbox (SOLVED)

battra wrote:

Thanks, iphitus.

For some reason, I'm not able to start fluxbox using "startfluxbox" or "exec startfluxbox" (placed in .xinitrc).  However, I am able to start it up when I put "exec fluxbox" in .xinitrc.   (I'm starting X and fluxbox using startx command and .xinitrc).  When typing startx with "exec startfluxbox" in my .xinitrc, the deskop appears for a second and dies.

that's quite unusual, startfluxbox works for me. make sure all your commands in your ~/.fluxbox/startup are backgrounded, eg put a '&' after them

James

Offline

#6 2006-07-06 06:15:11

battra
Member
From: Earth.US.Illinois.Chicago
Registered: 2006-05-12
Posts: 71

Re: ~/.fluxbox/startup not being executed by fluxbox (SOLVED)

ScriptDevil wrote:

in .fluxbox/init type
session.screen0.rootCommand: fbsetbg -f /home/myuser/backgrounds/ArchBlue.png

Yeah, that's what I actually had originally.  I wanted to change it and put this and maybe other stuff in ~/.fluxbox/startup, which is how I encountered this problem.

So, I do have a workaround.  I was just (and still am) curious as to why startfluxbox wasn't working for me.


"I know nothing except the fact of my ignorance."
- Socrates

Offline

#7 2006-07-06 06:21:13

battra
Member
From: Earth.US.Illinois.Chicago
Registered: 2006-05-12
Posts: 71

Re: ~/.fluxbox/startup not being executed by fluxbox (SOLVED)

iphitus wrote:

that's quite unusual, startfluxbox works for me. make sure all your commands in your ~/.fluxbox/startup are backgrounded, eg put a '&' after them

James

I went one further and commented everything out in ~/.fluxbox/startup to rule that file out as the cause of the problem - still didnt' work.

I suppose it's not that big a deal, since I do have a workaround and can start fluxbox by putting "exec fluxbox" in .xinitrc instead of "startfluxbox".  I just wanted stick some stuff like fbsetbg in ~/.fluxbox/startup instead of editing the init file.

It's sort of bugging me, though.   If you guys have any other suggestions, let me know.

Thanks for the suggestions already given.


"I know nothing except the fact of my ignorance."
- Socrates

Offline

#8 2006-07-06 06:30:19

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: ~/.fluxbox/startup not being executed by fluxbox (SOLVED)

well, that's wierd, but if you dont want to edit xinitrc to add startup programs, just add this to it:

bash ~/.fluxbox/startup &
exec fluxbox

and that will run the startup script.

James

Offline

#9 2006-07-06 06:35:42

battra
Member
From: Earth.US.Illinois.Chicago
Registered: 2006-05-12
Posts: 71

Re: ~/.fluxbox/startup not being executed by fluxbox (SOLVED)

iphitus wrote:

well, that's wierd, but if you dont want to edit xinitrc to add startup programs, just add this to it:

bash ~/.fluxbox/startup &
exec fluxbox

and that will run the startup script.

James

Ha, yeah - didn't think of that.   smile


"I know nothing except the fact of my ignorance."
- Socrates

Offline

#10 2006-07-06 06:45:44

battra
Member
From: Earth.US.Illinois.Chicago
Registered: 2006-05-12
Posts: 71

Re: ~/.fluxbox/startup not being executed by fluxbox (SOLVED)

Well, I got it to work the way it's apparently suppose to work (I think).

The startfluxbox manpage says that it will create the ~/.fluxbox/startup if one doesn't exist.  So, I deleted the original one (which was created when I first installed and ran fluxbox for the first time I think) and then ran exec startfluxbox from my .xinitrc again.

It re-created a new ~/.fluxbox/startup file that was completely different than the old one (namely, it had "exec fluxbox" at the end of it).  So, startfluxbox worked with the newly created startup file.  But, the fbsetbg command in the newly created ~/.fluxbox/startup file wasn't setting the background image (it would appear for a second and disappeared).  Following iphitus's advice, I addded '&' after.

And now, everything works.  The default startup file created by startfluxbox is kind of nice - lots of examples that are commented out by default.  However, their fbsetbg example wasn't working until I added the '&' as mentioned before.

Thanks iphitus and ScriptDevil for the suggestions and help.

Cheers.


"I know nothing except the fact of my ignorance."
- Socrates

Offline

Board footer

Powered by FluxBB