PDA

View Full Version : [all variants] [SOLVED] Openbox Start-Up Script



saj0577
November 9th, 2008, 02:53 AM
At the minute I am using:


#!/bin/sh
openbox &
eval `cat $HOME/.fehbg` &
gedit

As my start-up script all works perfectly unless I close down gedit and then it logs me out.
I obviously dont want to have to keep gedit open so I tried:


#!/bin/sh
openbox &
eval `cat $HOME/.fehbg` &

and


#!/bin/sh
openbox &
eval `cat $HOME/.fehbg


and it wont log in and with the other one it will log in but openbox does not work i.e right click menu not active.

How can I remove gedit from the script but keep it working as I dont want to have to keep gedit open at all times.

Saj

eriqjaffe
November 9th, 2008, 03:52 AM
I'm pretty sure that the last command has to end with a "&" as well.

saj0577
November 9th, 2008, 01:26 PM
#!/bin/sh
openbox &
eval `cat $HOME/.fehbg` &
gedit &
Does not load the openbox part fully (the title bar with minimize,maximise,close does not appear.) Also the right click menu does not work.



#!/bin/sh
openbox &
eval `cat $HOME/.fehbg` &
gedit

No matter what program I replace gedit with when I close that program down it logs me out.

Saj

kukibird1
November 9th, 2008, 08:52 PM
Try:

#!/bin/sh
eval `cat $HOME/.fehbg` &
gedit &
openbox &

or http://icculus.org/openbox/index.php/Help:Autostart

saj0577
November 10th, 2008, 12:40 AM
#!/bin/sh
feh --bg-scale "hello.JPG"
exec openbox


Works.

Saj

urukrama
November 10th, 2008, 10:29 AM
If you use the autostart.sh file (default in /etc/xdg/openbox, your modified copy in ~/.config/openbox) you shouldn't add openbox & or exec openbox to the list. Have a look at the Openbox documentation (http://icculus.org/openbox/index.php/Help:Autostart) or my Openbox guide (link in signature) to understand how Openbox's autostart file works.