You are not logged in.

#1 2025-11-06 09:12:58

Ace-nk
Member
Registered: 2025-11-06
Posts: 1

GTK 4 App theming on hyprland does not work with nwg-look.

On hyprland I am using gsettings and nwg-look to change gtk-theme. For some reason gtk-4 apps are buggy with this, where using nwg-look it does change theme but after some time. And gsettings don't work at all. Changing the cursor theme using gsettings or nwg-look do not work either. But icon theme works with both. Firefox does change theme according to nwg-look but stuff like nautilus, clapper or gnome-calculator does not. I know nwg-look uses gsettings for settings themes but for me using gsettings from the terminal does not work at all for gtk-theme.

Hyprland Environment Variables:

env = XCURSOR_SIZE,24
#env = XCURSOR_THEME,BreezeX-RosePine
env = HYPRCURSOR_SIZE,12
env = HYPRCURSOR_THEME.BreezeX-RosePine-Linux

env = LIBVA_DRIVER_NAME,nvidia
env = __GLX_VENDOR_LIBRARY_NAME,nvidia

env = ELECTRON_OZONE_PLATFORM_HINT,auto

env = NVD_BACKEND,direct

env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland

Zshrc:

export XDG_SESSION_TYPE="wayland"
export XDG_CURRENT_DESKTOP="Hyprland"
export WEBKIT_DISABLE_DMABUF_RENDERER=0

GTK-4 Settings.ini:

[Settings]
gtk-theme-name=Gruvbox-Dark
gtk-icon-theme-name=Colloid-Pastel-Yellow
gtk-font-name=SpaceMono Nerd Font Bold 11
gtk-cursor-theme-name=BreezeX-RosePine-Liux
gtk-cursor-theme-size=24
gtk-application-prefer-dark-theme=1

XDG-Desktop-portal-hyprland status

● xdg-desktop-portal-hyprland.service - Portal service (Hyprland implementation)
     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal-hyprland.service; static)
     Active: active (running) since Thu 2025-11-06 14:06:25 +06; 1h 0min ago
 Invocation: a8416cd8ecd44c0c9b03ec610af3909d
   Main PID: 25976 (xdg-desktop-por)
      Tasks: 6 (limit: 18592)
     Memory: 6.7M (peak: 8M)
        CPU: 239ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/xdg-desktop-portal-hyprland.service
             └─25976 /usr/lib/xdg-desktop-portal-hyprland

Nov 06 14:06:25 Valkyrie systemd[1365]: Starting Portal service (Hyprland implementation)...
Nov 06 14:06:25 Valkyrie systemd[1365]: Started Portal service (Hyprland implementation).

XDG-Desktop-Portal status

● xdg-desktop-portal.service - Portal service
     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal.service; static)
     Active: active (running) since Thu 2025-11-06 13:50:28 +06; 1h 17min ago
 Invocation: 232e4094b1ea49bea6b0eb3863d44375
   Main PID: 1628 (xdg-desktop-por)
      Tasks: 6 (limit: 18592)
     Memory: 5.4M (peak: 7.7M)
        CPU: 1.058s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/xdg-desktop-portal.service
             └─1628 /usr/lib/xdg-desktop-portal

Nov 06 13:50:27 Valkyrie systemd[1365]: Starting Portal service...
Nov 06 13:50:28 Valkyrie systemd[1365]: Started Portal service.
Nov 06 13:50:55 Valkyrie /usr/lib/xdg-desktop-portal[1628]: Failed to close session implementation: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Remote peer disconnected
Nov 06 14:03:18 Valkyrie /usr/lib/xdg-desktop-portal[1628]: A backend call failed: Inhibiting other than idle not supported
Nov 06 14:04:50 Valkyrie /usr/lib/xdg-desktop-portal[1628]: Failed to close session implementation: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer 'org.freedesktop.impl.p>
Nov 06 14:06:21 Valkyrie /usr/lib/xdg-desktop-portal[1628]: Failed to close session implementation: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer 'org.freedesktop.impl.p>
Nov 06 14:16:46 Valkyrie /usr/lib/xdg-desktop-portal[1628]: A backend call failed: Inhibiting other than idle not supported

The errors in xdg-desktop-portal status are recent and happened while I was troubleshooting. But my problem of gtk-4 themes not changing has been here for a while. It did used to work, my gtk-4 theme changed with nwg-look and gsettings but does not now.

Offline

Board footer

Powered by FluxBB