VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

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

InTheWoods

  • Vectorite
  • ***
  • Posts: 302
autostart for Openbox (solved)
« 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 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, 09:09:41 am by InTheWoods »
Logged

lagagnon

  • Global Moderator
  • Vectorian
  • *****
  • Posts: 1922
Re: autostart for Openbox
« Reply #1 on: May 02, 2009, 08:50:22 pm »

have you made the .sh file executable?
Logged
"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, 03:53:37 am »

Yes. autostart.sh is executable.
Logged

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4140
Re: autostart for Openbox
« Reply #3 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".
Logged

InTheWoods

  • Vectorite
  • ***
  • Posts: 302
Re: autostart for Openbox
« Reply #4 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.
Logged