Skip to content

Rewaita breaks with nwg-look and distro themes (+adw-gtk3) #80

@sqrvrt

Description

@sqrvrt

So I'm using Rewaita flatpak (v1.1.0)

When setting theme to adw-gtk3, nwg-look does the following:

INFO[0012] >>> Exporting /home/main/.config/gtk-3.0/settings.ini 
INFO[0012] >>> Exporting /home/main/.gtkrc-2.0          
INFO[0012] >>> Exporting /home/main/.local/share/icons/default/index.theme 
INFO[0012] >>> Exporting /home/main/.config/xsettingsd/xsettingsd.conf 
INFO[0012] >>> Symlinking files in /home/main/.config/gtk-4.0 
INFO[0012] >>> Exporting /home/main/.config/gtk-4.0/settings.ini 

Indeed, this is the ls output after wiping the dirs beforehand:

main@gentoo ~> ls ~/.config/gtk-3.0/ -l
total 4
-rw-r--r-- 1 main main 476 Jan  3 01:13 settings.ini

main@gentoo ~> ls ~/.config/gtk-4.0/ -l
total 12
lrwxrwxrwx 1 main main  47 Jan  3 01:13 gtk-dark.css -> /usr/share/themes/adw-gtk3/gtk-4.0/gtk-dark.css
lrwxrwxrwx 1 main main  42 Jan  3 01:13 gtk.css -> /usr/share/themes/adw-gtk3/gtk-4.0/gtk.css
-rw-r--r-- 1 main main 207 Jan  3 01:13 settings.ini

It's worth noting that symlink destinations are not writable by the user, i.e. they are a distro theme.

Finally, using Rewaita after this prompts it to echo Error moving file: [Errno 2] No such file or directory: '/home/main/.config/gtk-4.0/gtk.css'. The theme resets on closing the app which indicates that it fails to apply.

However, when the ~/.config/gtk-4.0/*.css files are dereferenced the theme applies successfully. But the gtk3 theme stays unthemed adw-gtk3. Is it possible to theme it too?

Edit: looks like to edit the gtk3 theme all you need is to symlink/copy the gtk4.0/gtk.css to equivalent gtk3 location.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions