You are not logged in.
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
when you start fluxbox in your ~/.xinitrc, use 'startfluxbox' instead of fluxbox.
James
Offline
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
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
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
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
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
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
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 fluxboxand that will run the startup script.
James
Ha, yeah - didn't think of that.
"I know nothing except the fact of my ignorance."
- Socrates
Offline
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