V
V
Vladimir Let 's say2017-04-21 13:16:01
linux
Vladimir Let 's say, 2017-04-21 13:16:01

How to change wallpaper for XFCE4 via CRON?

For example, we have a script (working):

#!/bin/bash
xfconf-query -c xfce4-desktop \
  -p /backdrop/screen0/monitor0/workspace0/last-image \
  -s /home/user/Pictures/wallpaper.png

But the cronie utility does not want to execute it, although notify-send executes without troubles.
There is an error in the logs (journalctl -b -u cronie):
CMDOUT (Error initializing libxfconf: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead.)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor Taran, 2017-04-21
@shambler81

10 1 * * * export DISPLAY=:0 && ваша_команда

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question