1

DBUS_SESSION_BUS_ADDRESS for script called from crontab.

view story
linux-howto

http://www.unix.com – Hi, I'm writing a Bash script for wallpaper clocks which works fine on the command line but needs to be run every minute from a crontab entry so the time gets changed on the wallpaper (the wallpaper gets rebuilt every minute so the current weekday, date, month, hour, and minute become part of the wallpaper). The script changes the wallpaper like this, depending on which version of Gnome is running: Code: Gnome v.2: gconftool-2 -t string -s /desktop/gnome/background/picture_filename "$currentImagePath" Gnome v.3: gsettings set org.gnome.desktop.background picture-uri "fi (HowTos)