Crontab not working?
Hello. I'm unfortunately a Linux noob, so I hope this post doesn't betray my ignorance too much.
I'm using Pop_OS! and it's modified version of Gnome, and I'm using dark theme which seems to have issues with Hydrapaper, but I've fixed that previously by using dconf editor to rename the picture-uri-dark property to sync up with Hydrapaper. I think this is a known bug/fix?
Anyway: I'm trying to use crontab to randomize my wallpapers at a set interval (every minute, just for testing) but nothing I've tried seems to work. So far, I've tried:
*/1 * * * * flatpak run org.gabmus.hydrapaper -r
*/1 * * * * bash ~/bin/hydra.sh (where hydra.sh is just flatpak run org.gabmus.hydrapaper -r)
*/1 * * * * env DISPLAY=:0 env XDG_CURRENT_DESKTOP=POP flatpak run org.gabmus.hydrapaper -r
For the last one, I've also tried XDG_CURRENT_DESKTOP=pop, and =GNOME, but none of them work.
If it matters, when I try those commands in terminal, I get these error messages:
$ flatpak run org.gabmus.hydrapaper -r
(org.gabmus.hydrapaper:2): Gtk-CRITICAL **: 16:22:37.123: gtk_widget_set_parent: assertion '_gtk_widget_get_parent (widget) == NULL' failed
The wallpapers do change successfully, though.
$ env DISPLAY=:0 env XDG_CURRENT_DESKTOP=POP flatpak run org.gabmus.hydrapaper -r F: X11 socket /tmp/.X11-unix/X0 does not exist in filesystem. F: X11 access will require --share=network permission.
(org.gabmus.hydrapaper:2): Gtk-CRITICAL **: 16:23:10.760: gtk_icon_theme_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(org.gabmus.hydrapaper:2): Gtk-CRITICAL **: 16:23:10.760: gtk_icon_theme_add_resource_path: assertion 'GTK_IS_ICON_THEME (self)' failed
(org.gabmus.hydrapaper:2): Gtk-CRITICAL **: 16:23:10.760: gtk_icon_theme_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(org.gabmus.hydrapaper:2): Gtk-CRITICAL **: 16:23:10.760: gtk_icon_theme_add_resource_path: assertion 'GTK_IS_ICON_THEME (self)' failed Traceback (most recent call last): File "/app/lib/python3.9/site-packages/hydrapaper/main.py", line 221, in do_command_line self.do_activate() File "/app/lib/python3.9/site-packages/hydrapaper/main.py", line 152, in do_activate super().do_activate() File "/app/lib/python3.9/site-packages/hydrapaper/base_app.py", line 83, in do_activate self.load_css() File "/app/lib/python3.9/site-packages/hydrapaper/base_app.py", line 77, in load_css Gtk.StyleContext.add_provider_for_display( TypeError: Argument 0 does not allow None as a value
The wallpapers do not change. Same for =pop and =GNOME.