【发布时间】:2017-04-22 07:36:32
【问题描述】:
我有这个脚本,它可以工作:
#!/bin/bash
xfconf-query -c xfce4-desktop \
-p /backdrop/screen0/monitor0/workspace0/last-image \
-s /home/user/Pictures/wallpaper.png
但 cronie 不想执行它(notify-send 效果很好)。
日志中有错误:
CMDOUT (Failed to init libxfconf: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead.)
我尝试在 .bashrc 中使用export $(dbus-launch),但这并没有解决问题。
【问题讨论】: