VectorLinux

The nuts and bolts => X-Rated => Topic started by: InTheWoods on May 02, 2009, 07:42:50 pm

Title: autostart for Openbox (solved)
Post by: InTheWoods on May 02, 2009, 07:42:50 pm
I am trying out Openbox and would like to set my background and run wbar automaticaly. I have created an autostart.sh file in my /home/.config/openbox/ directory but can't seem to make it run.

From the Openbox wiki (http://icculus.org/openbox/index.php/Help:Autostart) it would appear that the login screen for VL6.0 Light may execute openbox when openbox-session is required to use autostart.sh

Where would I find the file to edit the login options for the session choice.
Title: Re: autostart for Openbox
Post by: lagagnon on May 02, 2009, 08:50:22 pm
have you made the .sh file executable?
Title: Re: autostart for Openbox
Post by: InTheWoods on May 03, 2009, 03:53:37 am
Yes. autostart.sh is executable.
Title: Re: autostart for Openbox
Post by: nightflier on May 03, 2009, 05:20:19 am
If I understand correctly, you are looking for the file that controls the launching of Openbox from your login manager?

Default for VL6 Light is KDM, it uses "/usr/share/apps/kdm/sessions/openbox.desktop".
Title: Re: autostart for Openbox
Post by: InTheWoods on May 03, 2009, 09:09:11 am
Thank you. I spent 3 evenings trying to figure this simple thing out.
I have tried a lot of "HOW TOs" from other places so this may not be the whole story. But I think it is.

I changed  line 4 of
/usr/share/apps/kdm/sessions/openbox.desktop

from
Code: [Select]
Exec=openboxto
Code: [Select]
Exec=openbox-session
and my /home/me/.config/openbox/autostart.sh file now functions. Here is my autostart file for reference.

Code: [Select]
#!/bin/sh

feh --bg-scale /home/dad/Pictures/kingfisher.jpg &
(sleep 1s && wbar) &

Thanks again nightflier.
Title: Re: autostart for Openbox (solved)
Post by: fungalnet on February 07, 2018, 02:02:40 pm
I know this is out of date but may be used for reference
the ~/.config/openbox/autostart   does not need an .sh on it.
you can simply put things like:

lxterminal &
pcmanfm &
lxpanel &
conky -c ....//...//conkyscript  &

and some more complex statements with sleep for things starting in a sequence
sleep 4 & (.....)  &&