OpenBox and feh - do not work.

Hi all,
I have a problem for OpenBox GUI and wallpapers.
I use graphics/feh.
It is my autostart.sh
~/.config/openbox/sutostart.sh

Code:
#!/bin/sh
#
feh --bg-scale “${HOME}/wallpapers/bincode.jpg” &

After reload my OpenBox I see image bincode.jpg in a window.
Image opens in a window, rather than as an image of your desktop.

I read the man pages for feh - all working. Why can not I?
There is some sort of alternative feh (pretty straightforward)?
 
Yes, I know about Nitrogen. But feh You can configure the command line (or shell script).
But Nitrogen to first run the GUI.
 
@doorways, it's very strange . There is similar string at the beginning my autostart.sh and feh works good for me . What if you try --bg-tile ?
 
This is my feh entry in openbox autostart.sh to get the background to load. Maybe give this a shot. Also, you didn't mention if feh sets the background for your correctly when manually running the command.

Code:
if which feh >/dev/null 2>&1; then
  ( sleep 1 && feh --bg-scale $HOME/Wallpaper/Misc/wallpaper.png </dev/null &>/dev/null ) &
fi
 
redw0lfx said:
Also, you didn't mention if feh sets the background for your correctly when manually running the command.

also run in a window ... Now try to run your version. Thank you.
 
Surprisingly, the launching of a feh in root user - all works. I guess I created a user has insufficient permissions.
 
Ok, I installed security/sudo and added in /usr/local/etc/sudoers
Code:
<USERNAME> ALL=(ALL) NOPASSWD: ALL
- perhaps, for this you have to beat on his hands?
- but as for the other?

And write my ~/.config/openbox/autostart.sh
Code:
sudo -s
feh --bg-scale "${HOME}/.wall/wall.jpg" &
tint2 &

All working.

But this is not right!
How to right?

Add
----------------
The reason is that it was not quite right that would create the file ~ /. fehbg
 
You must have administrator rights.
If you do not.
I am creating a file ~ /.fehbg:
Code:
feh --bg-scale '/usr/home/<USERNAME>/wallpapers/myimg.jpg'

And adds to your ~/.xinitrc
Code:
...
eval `cat /usr/home/<USERNAME>/.fehbg` &
exec openbox-session

Although enough the first time using feh to run sudo!
Thank you all! Locked!
 
Back
Top