You are not logged in.

#1 2008-03-23 19:17:21

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

Running A Command After Fluxbox Starts?

I found out that in order to start stalonetray properly, it must be started AFTER fluxbox has started. However, I can't place it after exec fluxbox in .xinitrc because it never starts up. I can't fork fluxbox with exec fluxbox & because fluxbox crashes. Any ideas?

Offline

#2 2008-03-23 19:24:51

canistra
Member
Registered: 2007-11-03
Posts: 66

Re: Running A Command After Fluxbox Starts?

just place it in ~/.fluxbox/startup

Offline

#3 2008-03-23 19:29:03

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

Re: Running A Command After Fluxbox Starts?

canistra wrote:

just place it in ~/.fluxbox/startup

Then I would need to do startfluxbox and startfluxbox crashes fluxbox just the same.

Offline

#4 2008-03-23 20:48:27

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

Re: Running A Command After Fluxbox Starts?

Yep, startfluxbox crashes fluxbox. Can't even get fluxbox to start with it...

Offline

#5 2008-03-23 21:00:42

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: Running A Command After Fluxbox Starts?

Create a script:

#!/bin/bash
sleep 5  # adjust how many seconds you need to wait until flux starts
exec stalonetray

and run this instead of stalonetray directly from .xinitrc.

Offline

#6 2008-03-23 21:10:48

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

Re: Running A Command After Fluxbox Starts?

bender02 wrote:

Create a script:

#!/bin/bash
sleep 5  # adjust how many seconds you need to wait until flux starts
exec stalonetray

and run this instead of stalonetray directly from .xinitrc.

That's the exact same thing I tried! However, it failed when I did it...
Edit: Nevermind, it works now! Turns out I forgot to put the & after it in my .xinitrc the first time I did it.

Last edited by solarwind (2008-03-23 21:13:56)

Offline

#7 2008-03-23 21:15:50

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

Re: Running A Command After Fluxbox Starts?

Thanks a lot!

Offline

Board footer

Powered by FluxBB