VectorLinux
July 30, 2014, 07:01:42 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: autostart for Openbox (solved)  (Read 2058 times)
InTheWoods
Vectorite
***
Posts: 302


« 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 » Logged
lagagnon
Global Moderator
Vectorian
*****
Posts: 1922



WWW
« Reply #1 on: May 02, 2009, 07: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


« Reply #2 on: May 03, 2009, 02:53:37 am »

Yes. autostart.sh is executable.
Logged
nightflier
Administrator
Vectorian
*****
Posts: 4018



« 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".
Logged
InTheWoods
Vectorite
***
Posts: 302


« 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:
Exec=openbox
to
Code:
Exec=openbox-session

and my /home/me/.config/openbox/autostart.sh file now functions. Here is my autostart file for reference.

Code:
#!/bin/sh

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

Thanks again nightflier.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!