hyprwm / xdg-desktop-portal-hyprland

xdg-desktop-portal backend for Hyprland
BSD 3-Clause "New" or "Revised" License
298 stars 48 forks source link

GTK4/Libadwaita Apps Not Recieving Colour Scheme #186

Closed cprin21 closed 8 months ago

cprin21 commented 8 months ago

Using nwg-look my theme is set to prefer-dark and yet apps like gnome-calendar do not respect this using the git version of xdg-desktop-portal-hyprland.

Waybar when killed and restarted mentions something about dbus being unable to receive desktop appearance, which may be why theming is broken.

[2024-02-19 08:40:40.038] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop

And here is the output of gnome-calendar --debug also mentioning something about "no such interface" in regards to portal settings.

08:38:55.147951                       Adwaita:    DEBUG: Portal doesn't provide settings: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
08:38:55.148266                       Adwaita:    DEBUG: Portal doesn't provide settings: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop

This issue was not present before updating from xdg-desktop-portal-hyprland to xdg-desktop-portal-hyprland-git to update to the latest commit of Hyprland.

vaxerski commented 8 months ago

are you maybe missing xdg-desktop-portal-gtk?

cprin21 commented 8 months ago

Not missing xdg-desktop-portal-gtk, issue remains with that portal installed (Installed for file chooser)

vaxerski commented 8 months ago

well I believe it's a problem with gtk then because xdph does not povide this portal (and won't)

cprin21 commented 8 months ago

Understandable, just from a user's perspective, gtk4 theming worked until updating hyprland-git at which point the hyprland-git XDG desktop portal git branch was needed which was when the gtk4 theming broke.

cprin21 commented 8 months ago

Reinstalling the non-AUR version of xdg-desktop-portal-hyprland works now, does not error with a hyprlang dependency problem like before and GTK4 apps are receiving theming again.