You are not logged in.
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
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
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
I don't use GDM, however this is in my ~/.xinitrc
lxpanel &
exec openbox
Works everytime, hope this helps.
Offline
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
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