adi1090x / dynamic-wallpaper

A simple bash script to set wallpapers according to current time, using cron job scheduler.
GNU General Public License v3.0
1.88k stars 115 forks source link

dwall change lockscreen wallpaper[kde neon] #49

Closed 1999shaswat closed 3 years ago

1999shaswat commented 3 years ago

(base) shade@shade-HP-ProBook-450-G1:~$ echo "$SHELL | $DISPLAY | $DESKTOP_SESSION | $DBUS_SESSION_BUS_ADDRESS | $XDG_RUNTIME_DIR" /bin/bash | :0 | /usr/share/xsessions/plasma | unix:path=/run/user/1000/bus | /run/user/1000

(base) shade@shade-HP-ProBook-450-G1:~$ crontab -l 0 env DISPLAY=:0 DESKTOP_SESSION=/usr/share/xsessions/plasma DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus" /usr/bin/dwall -s room

I have tested cronjob and it works. running dwall directly works but from cronjob doesn't. Why?

Sagyam commented 3 years ago

Same problem here. If you check this logs of it may say pywal is not installed on your system, exiting... even though pip3 list show pywall as already installed.

Sagyam commented 3 years ago

Try add environment variable PATH to your cron file. Run echo $PATH Update cron file with

0 * * * * env PATH=<your-path> DISPLAY=:0 DESKTOP_SESSION=/usr/share/xsessions/plasma DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus" /usr/bin/dwall -s room
1999shaswat commented 3 years ago

Try add environment variable PATH to your cron file. Run echo $PATH Update cron file with

0 * * * * env PATH=<your-path> DISPLAY=:0 DESKTOP_SESSION=/usr/share/xsessions/plasma DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus" /usr/bin/dwall -s room

Thanks a lot. Was just going through your issue. Followed it and now it works!