You are not logged in.

#1 2007-06-21 22:03:10

twiistedkaos
Member
Registered: 2006-05-20
Posts: 666

How to properly load applications with OpenBox

Originally, I was using a simply script to start all my applications, then start openbox. For some reason though, this script fails many times and doesn't run certain applications. I was wondering how to make a startup script for openbox, I want to run a few applications when I first start openbox. I am using GDM, and a site told me to use the .xsession file for GDM, however this file is never excuted by GDM, so it's usless to me. Any help is appreciated.

Offline

#2 2007-06-21 22:09:00

Roberth
Member
From: The Pale Blue Dot
Registered: 2007-01-12
Posts: 894

Re: How to properly load applications with OpenBox

If you have Openbox 3.4, you could create an file called autostart.sh in ~/.config/openbox, for example mine looks like this

# Run the system-wide support stuff
. $GLOBALAUTOSTART

# Programs to launch at startup
xrandr -r 60 &
feh --bg-tile black_mosaic_by_seikq.jpg &
#xcompmgr -Cc &

# Programs that will run after Openbox has started
docker &
conky &

If the script exist, openbox will start it automaticly, and start openbox-session, instead of openbox, if you're running plain openbox.

Last edited by Roberth (2007-06-21 22:09:53)


Use the Source, Luke!

Offline

#3 2007-06-22 00:15:56

twiistedkaos
Member
Registered: 2006-05-20
Posts: 666

Re: How to properly load applications with OpenBox

Roberth wrote:

If you have Openbox 3.4, you could create an file called autostart.sh in ~/.config/openbox, for example mine looks like this

# Run the system-wide support stuff
. $GLOBALAUTOSTART

# Programs to launch at startup
xrandr -r 60 &
feh --bg-tile black_mosaic_by_seikq.jpg &
#xcompmgr -Cc &

# Programs that will run after Openbox has started
docker &
conky &

If the script exist, openbox will start it automaticly, and start openbox-session, instead of openbox, if you're running plain openbox.

Yes, this works, but I end up with the same issue as before, I am using an application for a taskbar, and it always skips over the taskbar and doesn't load it. I've tried multiple task bars, each one, same thing happens.

Offline

#4 2007-06-22 01:54:29

judfilm
Member
Registered: 2004-02-12
Posts: 229

Re: How to properly load applications with OpenBox

I don't use GDM, however this is in my ~/.xinitrc

lxpanel &
exec openbox

Works everytime, hope this helps.

Offline

#5 2007-06-22 02:01:14

Echo
Member
From: Ohio, United States
Registered: 2006-05-16
Posts: 239

Re: How to properly load applications with OpenBox

I run openbox and other apps from .xinitrc too....works fine.

Does the application you want to run at startup run from a terminal once everything else is loaded?

edit: Maybe through a "sleep x" command in there to give other stuff a chance to load?

Last edited by Echo (2007-06-22 03:33:43)

Offline

#6 2007-06-22 06:59:07

twiistedkaos
Member
Registered: 2006-05-20
Posts: 666

Re: How to properly load applications with OpenBox

Echo wrote:

I run openbox and other apps from .xinitrc too....works fine.

Does the application you want to run at startup run from a terminal once everything else is loaded?

edit: Maybe through a "sleep x" command in there to give other stuff a chance to load?

Yes it loads if I run the script manually, I'll try adding sleep's into the script.

Offline

Board footer

Powered by FluxBB