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.91k stars 116 forks source link

Complain about oguri and swaybg on Gnome 46 #108

Open dbasinge opened 6 months ago

dbasinge commented 6 months ago

Getting the following error on Fedora 40 with Gnome 46, never had Sway installed.

[*] 'oguri' daemon is not running. You must start the daemon first.
[!] Kill 'swaybg' in sway session if the wallpaper is not getting applied.
GimmeTheSallami commented 5 months ago

I tried adding sudo behind it, it worked but now its just giving me perm. errors

[*] Using style : moon ./test.sh: line 193: /home/user/dynamic-wallpaper/images/moon/13.jpg: Permission denied

edit - even after giving perm to the whole thing it now give me this: ./test.sh: line 193: /home/user/dynamic-wallpaper/images/moon/13.jpg: cannot execute binary file: Exec format error

also here are diffrent ones (dont know tf is wrong with the firewatch ): user@Niga-Stol-Mai-Bik:~$ sudo dwall -s aurora [*] Using style : aurora /usr/bin/dwall: line 193: /usr/share/dynamic-wallpaper/images/aurora/13.jpg: cannot execute binary file: Exec format error user@Niga-Stol-Mai-Bik:~$ sudo dwall -s cliffs [*] Using style : cliffs /usr/bin/dwall: line 193: /usr/share/dynamic-wallpaper/images/cliffs/13.jpg: cannot execute binary file: Exec format error user@Nigga-Stol-Mai-Bik:~$ sudo dwall -s beach [*] Using style : beach /usr/bin/dwall: line 193: /usr/share/dynamic-wallpaper/images/beach/13.jpg: cannot execute binary file: Exec format error user@Niga-Stol-Mai-Bik:~$ sudo dwall -s firewatch [*] Using style : firewatch /usr/share/dynamic-wallpaper/images/firewatch/13.png: line 1: $'\211PNG\r': command not found /usr/share/dynamic-wallpaper/images/firewatch/13.png: line 2: $'\032': command not found /usr/share/dynamic-wallpaper/images/firewatch/13.png: line 3: $'\rIHDR': command not found /usr/share/dynamic-wallpaper/images/firewatch/13.png: line 4: syntax error near unexpected token ) /usr/share/dynamic-wallpaper/images/firewatch/13.png: line 4:b�� IDATx���亲����������~�1 �1� ���-�T�z�����h]�1��֏���:�DqaR�}��!�~�3���ē��)�Y��:yv-���߄�2���JWn���B��zZ��W/J2��T��X)����2#��?~V�Y{Uu�H�.A�!�)Q���Y';�IQd������7�h;}$e���r����a�,�� �T3=q �<~{5���\̈́=�,֦ȃ�M4��XfWZC��5���V������/֟���͌)�l휷1��&I35����$ȃ�>�<�=��R��s)��0���x�z+��J���6�����K��m����[�d�j�������,w�/r�}����'�k�Ϯ��9->�e��)�a{R#�Oy��:0,�e㉷� ��Cy��a�B� �' samgo@Niga-Stol-Mai-Bik:~$ `

dukercs commented 5 months ago

I tried adding sudo behind it, it worked but now its just giving me perm. errors

[*] Using style : moon ./test.sh: line 193: /home/user/dynamic-wallpaper/images/moon/13.jpg: Permission denied

edit - even after giving perm to the whole thing it now give me this: ./test.sh: line 193: /home/user/dynamic-wallpaper/images/moon/13.jpg: cannot execute binary file: Exec format error

also here are diffrent ones (dont know tf is wrong with the firewatch ): user@Niga-Stol-Mai-Bik:~$ sudo dwall -s aurora [*] Using style : aurora /usr/bin/dwall: line 193: /usr/share/dynamic-wallpaper/images/aurora/13.jpg: cannot execute binary file: Exec format error user@Niga-Stol-Mai-Bik:~$ sudo dwall -s cliffs [*] Using style : cliffs /usr/bin/dwall: line 193: /usr/share/dynamic-wallpaper/images/cliffs/13.jpg: cannot execute binary file: Exec format error user@Nigga-Stol-Mai-Bik:~$ sudo dwall -s beach [*] Using style : beach /usr/bin/dwall: line 193: /usr/share/dynamic-wallpaper/images/beach/13.jpg: cannot execute binary file: Exec format error user@Niga-Stol-Mai-Bik:~$ sudo dwall -s firewatch [*] Using style : firewatch /usr/share/dynamic-wallpaper/images/firewatch/13.png: line 1: $'\211PNG\r': command not found /usr/share/dynamic-wallpaper/images/firewatch/13.png: line 2: $'\032': command not found /usr/share/dynamic-wallpaper/images/firewatch/13.png: line 3: $'\rIHDR': command not found /usr/share/dynamic-wallpaper/images/firewatch/13.png: line 4: syntax error near unexpected token ) /usr/share/dynamic-wallpaper/images/firewatch/13.png: line 4:b�� IDATx���亲����������~�1 �1� ���-�T�z�����h]�1��֏���:�DqaR�}��!�~�3���ē��)�Y��:yv-���߄�2���JWn���B��zZ��W/J2��T��X)����2#��?~V�Y{Uu�H�.A�!�)Q���Y';�IQd������7�h;}$e���r����a�,�� �T3=q �<~{5���\̈́=�,֦ȃ�M4��XfWZC��5���V������/֟���͌)�l휷1��&I35����$ȃ�>�<�=��R��s)��0���x�z+��J���6�����K��m����[�d�j�������,w�/r�}����'�k�Ϯ��9->�e��)�a{R#�Oy��:0,�e㉷� ��Cy��a�B� �' samgo@Niga-Stol-Mai-Bik:~$ `

It's missing the SETTER variable, for some reason the main script doesn't loaded the variable $XDG_SESSION_TYPE and without it there's no SETTER var used inside the main script, so I've added XDG_SESSION_TYPE=x11 to my crontab line and it worked very well.

Kourai commented 5 months ago

Same problem here, but XDG_SESSION_TYPE=wayland

no wallpaper change at all, whether i use dwall -s aurora or the cron, I always get the 'oguri' error...

Nikhil-John commented 3 months ago

Same problem here, but XDG_SESSION_TYPE=wayland

no wallpaper change at all, whether i use dwall -s aurora or the cron, I always get the 'oguri' error...

same here and I think it has got something to do with oguri service so I checked it out and apparently its not maintained any more. Ig we should ask for the script to be updated to use an alternative?

GillyRabutTsurwa commented 3 weeks ago

Has anyone found any possible solution for this? I experienced the same thing after a clean install of Arch Linux with Gnome 47 in my case.