View previous topic :: View next topic |
Author |
Message |
MacMasta Guru
Joined: 18 Apr 2002 Posts: 545 Location: Anchorage, AK
|
Posted: Tue Jul 09, 2002 5:25 am Post subject: Fluxbox startup - nothing works |
|
|
So I want to run a few apps at fluxbox startup.
Nothing works.
Running XDM:
from /etc/rc.conf:
in /etc/X11/Sessions:
Code: | mac@orthanc mac $ ls /etc/X11/Sessions/
Xsession fluxbox mac |
in /etc/X11/Sessions/mac
Code: | orthanc Sessions # more mac
/usr/bin/fluxbox
gkrellm -w
bbpager
bsetbg /home/mac/images/digitalblasphemy/denouement1600.jpg > /dev/null &
wmix
wmxmms
|
Startup looks like this: system boots up, gives me XDM login screen.
I log in - it loads my style, and nothing else.
however, when I run
Code: | /etc/X11/Sessions/mac |
as my user, it sets the background and launches all the correct apps - why is xdm / flux / rc.conf not running this script?
~Mac~ |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Tue Jul 09, 2002 5:38 am Post subject: |
|
|
I'm not a user of login managers, so my first question is this: Is mac a login manager? _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
MacMasta Guru
Joined: 18 Apr 2002 Posts: 545 Location: Anchorage, AK
|
Posted: Tue Jul 09, 2002 5:41 am Post subject: |
|
|
No, mac is both my username and the name of the session I figured I'd build for myself.
~Mac~ |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Tue Jul 09, 2002 5:53 am Post subject: Re: Fluxbox startup - nothing works |
|
|
Instead of this: MacMasta wrote: | Code: | orthanc Sessions # more mac
/usr/bin/fluxbox
gkrellm -w
bbpager
bsetbg /home/mac/images/digitalblasphemy/denouement1600.jpg > /dev/null &
wmix
wmxmms
|
| Try this: Code: | exec gkrellm -w &
exec bbpager &
exec bsetbg /home/mac/images/digitalblasphemy/denouement1600.jpg > /dev/null &
exec wmix &
exec wmxmms &
exec /usr/bin/fluxbox |
_________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
abhishek Retired Dev
Joined: 28 Jun 2002 Posts: 393 Location: Los Angeles, CA
|
Posted: Tue Jul 09, 2002 5:59 am Post subject: |
|
|
yeah i agree with that. twhen i had fluxbox before gkrellm in my .xinitrc gkrellm didnt conme up. when i flipped em it worked. |
|
Back to top |
|
|
MacMasta Guru
Joined: 18 Apr 2002 Posts: 545 Location: Anchorage, AK
|
Posted: Tue Jul 09, 2002 6:56 am Post subject: No luck |
|
|
Yeah, that didn't help:
Code: |
mac@orthanc mac $ more /etc/X11/Sessions/mac
exec gkrellm -w &
exec bbpager &
exec bsetbg /home/mac/images/digitalblasphemy/denouement1600.jpg &
exec wmix &
exec wmxmms &
exec /usr/bin/fluxbox
|
Now what?
~Mac~ |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Tue Jul 09, 2002 7:03 am Post subject: |
|
|
I would set XSESSION=fluxbox,
ensure /etc/X11/Sessions/fluxbox contains:
Then in ~/.xinitrc put: Code: | exec /usr/bin/fluxbox |
If that works, then add the following lines (before exec fluxbox): Code: | exec gkrellm -w &
exec bbpager &
exec bsetbg /home/mac/images/digitalblasphemy/denouement1600.jpg &
exec wmix &
exec wmxmms & | If it stops working, remark them out, and enable 1 at a time until it stops working. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Tue Jul 09, 2002 7:07 am Post subject: |
|
|
That may not work. xdm (and others) may ignore the .xinitrc file. I'm pretty sure this has been covered,
so you may search for xdm, gdm or kdm. The solution is most likely similar. I'm not a *dm user, so I'm not
familiar with the process. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
BernieKe Tux's lil' helper
Joined: 02 Jul 2002 Posts: 130 Location: California/Bangalore/Belgium
|
Posted: Wed Jul 10, 2002 11:11 am Post subject: |
|
|
just use xinit then to start the windowmanager |
|
Back to top |
|
|
masseya Bodhisattva
Joined: 17 Apr 2002 Posts: 2602 Location: Baltimore, MD
|
Posted: Wed Jul 10, 2002 7:49 pm Post subject: |
|
|
If you are using kdm (maybe the same applies to xdm, i don't know..) you might want to look at this thread because I have a hunch, which I will test later tonight (much later) that you can use the same file (/etc/X11/Sessions/fluxbox) to start up things like gkrellm 'n stuff just like you would normally do in a .xinitrc file. Most of this you seem to have already tried, but you should make sure that there's a shebang line at the top of you session file. I would think yours would look something like this:
Code: | mac@orthanc mac $ more /etc/X11/Sessions/mac
#!/bin/sh
exec gkrellm -w &
exec bbpager &
exec bsetbg /home/mac/images/digitalblasphemy/denouement1600.jpg &
exec wmix &
exec wmxmms &
exec /usr/bin/fluxbox |
Unfortunately, I'm not near a gentoo box and I can't test this theory. Also, make sure it's permissions are set correctly as that will no doubt cause it to make you want to tear out your spleen and feed it to your slightly confused dog. _________________ if i never try anything, i never learn anything..
if i never take a risk, i stay where i am.. |
|
Back to top |
|
|
MacMasta Guru
Joined: 18 Apr 2002 Posts: 545 Location: Anchorage, AK
|
Posted: Thu Jul 11, 2002 2:58 am Post subject: |
|
|
To quote an old favorite:
Quote: | Heavens no, H ell Yeah! |
That got it working - to imagine, it was just the buggered little shebang all the time.
(I love unix - we actually have something called a shebang!)
~Mac~ |
|
Back to top |
|
|
masseya Bodhisattva
Joined: 17 Apr 2002 Posts: 2602 Location: Baltimore, MD
|
Posted: Thu Jul 11, 2002 11:37 am Post subject: |
|
|
MacMasta wrote: | (I love unix - we actually have something called a shebang!)
~Mac~ |
I'm not sure what to think about that from a guy named Mac. I'm glad it worked for you. _________________ if i never try anything, i never learn anything..
if i never take a risk, i stay where i am.. |
|
Back to top |
|
|
|