xfdesktop in a cron job
jannis at xfce.org
Fri Nov 25 02:46:28 CET 2011
On Fri, 25 Nov 2011 02:20:15 +0100
houghi <houghi at houghi.org> wrote:
> On Fri, Nov 25, 2011 at 12:38:29AM +0000, Jannis Pohlmann wrote:
> > You should need not reload xfdesktop. Instead, it should be
> > possible to use xfconf-query to change the wallpaper and have the
> > running xfdesktop process pick it up automatically.
> OK. Point taken. Did not know that and will rewrite my script.
> This does not help with the DISPLAY part.
> When I use the following in a script I get the error below:
> DISPLAY=:0.0 xfconf-query -c xfce4-desktop
> -p /backdrop/screen0/monitor0/image-path -s $PIC2
> ** (process:4727): CRITICAL **: Failed to init
> libxfconf: /bin/dbus-launch terminated abnormally
> +with the following error: No protocol specified
> Autolaunch error: X11 initialization failed
This means you are unable to connect to the D-Bus session bus. Are you
trying to run this cronjob as root or as a regular user (before
answering, make sure you read up on per-user cronjobs)?
More information about the Xfce