GTK 'color-scheme' under Wayland

December 23, 2024

As i said in my last two posts im setting up again my computer and this took me another few hours to found why it wasnt warking.

Although i followed the Arch Wiki guide on how to setup GTK dark mode under wayland, it wasnt working. gsettings set org.gnome.desktop.interface color-scheme 'prefer-{dark/light}' did nothing.

I installed xdg-desktop-portal and xdg-desktop-portal-gtk.

xdg-desktop-portal was being executed automatically, but not xdg-desktop-portal-gtk.

I could test that it was working by killing all instances of xdg-desktop-portal and manually launching /usr/libexec/xdg-desktop-portal. So it must be a problem when starting it.

Thanks to the Gentoo wiki i found out that i have to run dbus-update-activation-environment --all on my startup script.

And now everything is working, all color changes are a command away. Its interesting how many things we do for granted when we install a fully desktop enviroment.

Leave your comment on the github issue, sending me an email or DMing me on twitter