Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
running openbox and a program after it is done loading
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5910

PostPosted: Thu Jul 08, 2010 9:27 pm    Post subject: running openbox and a program after it is done loading Reply with quote

I need to run openbox as a minimal de and after it has done loading, I need it to run a script
I thought of doing the following:
Code:

#!/bin/bash
/usr/bin/openbox-session
sh foo

will that work?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Fri Jul 09, 2010 12:49 am    Post subject: Reply with quote

~/.config/openbox/autostart.sh

That's the place you put your stuff to be run after Openbox is up. Use sleep command to delay your foo if Openbox is not ready yet.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
marens
Apprentice
Apprentice


Joined: 05 Aug 2004
Posts: 173

PostPosted: Fri Jul 09, 2010 1:21 am    Post subject: Reply with quote

just a reminder
Quote:
When you run the openbox command on its own, the autostart scripts will not run. They are run by openbox-session or when you log in graphically with the "Openbox" session type.

_________________
If English was good enough for Jesus, then it's good enough for you!
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5910

PostPosted: Fri Jul 09, 2010 5:05 am    Post subject: Reply with quote

Jaglover wrote:
~/.config/openbox/autostart.sh

That's the place you put your stuff to be run after Openbox is up. Use sleep command to delay your foo if Openbox is not ready yet.


question is, how much time to put in the sleep

marens wrote:
just a reminder
Quote:
When you run the openbox command on its own, the autostart scripts will not run. They are run by openbox-session or when you log in graphically with the "Openbox" session type.


the content of /etc/X11/Sessions/openbox is /usr/bin/openbox-session
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum