JeysonFlores / switcher

Set default wallpapers for Dark & Light mode.
GNU General Public License v3.0
20 stars 2 forks source link

Does not change background #2

Closed lukors closed 2 years ago

lukors commented 2 years ago

It doesn't change the background for me.

https://user-images.githubusercontent.com/1719884/145965986-2ec2ae55-91df-4c12-b017-754eca0ed582.mp4

JeysonFlores commented 2 years ago

Try to run the app from the console and check if it throws any errors, that would help me figure out the problem. However it looks like the app doesn't find the image.... which of course it shouldn't happen.

If it doesn't throw anything I'll make a new commit that will add more debugging alerts and stuff that will help us figure out what's the problem.

lukors commented 2 years ago

Here's a video of what happens, so you can see what message comes when:

https://user-images.githubusercontent.com/1719884/146050018-62914868-5d58-43d4-b88b-735c7d95075e.mp4

Here's the log:

Gtk-Message: 18:31:02.220: Failed to load module "canberra-gtk-module"
Gtk-Message: 18:31:02.221: Failed to load module "canberra-gtk-module"

(com.github.jeysonflores.switcher:2): GLib-CRITICAL **: 18:31:09.846: g_variant_new_string: assertion 'string != NULL' failed
error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown
error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown
error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown

(com.github.jeysonflores.switcher:2): GLib-CRITICAL **: 18:31:42.845: g_variant_new_string: assertion 'string != NULL' failed
JeysonFlores commented 2 years ago

Ok, It was because the flatpak container didn't have permissions to access elementary's contractor (the thing the app uses to change the wallpaper). For some reason I didn't realize of this last night (it seems I was quite tired). However with the last commit it should work. Can you try it to see if it works?

lukors commented 2 years ago

Looks like it's working now! :)