Friday, March 12, 2010

ck-launch-session & wallpaper

In order to allow auto mounting to work in thunar, i have to start my openbox (in ~/.xinitrc) using:

exec ck-launch-session openbox-session

So far, the problem with this approach is that the wallpaper set prior this command is lost. Meaning when launching X, i see the wallpaper for a split second, and then, it disappears altogether, and i get a plain grey background. To work around this, i added a customized X startup script ~/bin/startx:
1
2
3
#!/bin/bash
feh --bg-tile ~/pictures/wallpaper/current.jpg &
openbox-session

And amend the line in ~/.xinitrc to:

exec ck-launch-session ~/bin/startx

That's all !!

Labels