Please support VectorLinux!

Author Topic: autostart for Openbox (solved)  (Read 2359 times)

InTheWoods

  • Vectorite
  • ***
  • Posts: 302
autostart for Openbox (solved)
« on: May 02, 2009, 06: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 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.
« Last Edit: May 03, 2009, 08:09:41 am by InTheWoods »

lagagnon

  • Global Moderator
  • Vectorian
  • *****
  • Posts: 1922
Re: autostart for Openbox
« Reply #1 on: May 02, 2009, 07:50:22 pm »
have you made the .sh file executable?
"As people become more intelligent they care less for preachers and more for teachers". Robert G. Ingersoll

InTheWoods

  • Vectorite
  • ***
  • Posts: 302
Re: autostart for Openbox
« Reply #2 on: May 03, 2009, 02:53:37 am »
Yes. autostart.sh is executable.

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4073
Re: autostart for Openbox
« Reply #3 on: May 03, 2009, 04: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".

InTheWoods

  • Vectorite
  • ***
  • Posts: 302
Re: autostart for Openbox
« Reply #4 on: May 03, 2009, 08: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.