I am attempting to edit the adwaita theme, the only way to do this is to open the
gedit will not open the file,
geany will not open the file.
How do I open the file so I can edit
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
since some time, GTK-3 theme CSS files are precompiled into a binary format (
*.gresource) and installed as a bundle. There is a helper program called gresource to deal with these files
/usr/binand get more documentation by invoking
to list the contents of a
gresource list gtk.gresource
to extract a specific resource from it:
gresource extract gtk.gresource /org/gnome/adwaita/gtk-main.css
Basically, this allows you to get the contents of the original Theme extracted. You could make a conventional Theme (with discrete CSS files) from the extracted resources. The key point to note for this is that you have to change the entry point in the top level
gtk-3.0/gtk.css file within your theme. In binary themes, you'll find there a URL reference
You need to change this reference to point to your locally installed files
If you want to compile a new binary bundle from a theme you edited in discrete CSS files, see this Blog post from 2012 by Satyajit Sahoo
$ file gtk.* gtk.css: ASCII text gtk.gresource: GVariant Database file, version 0
So the answer is: you do not. It is software (see gvariant).
so I can edit the gtk.css
That one is an ASCII file so editable with gEdit.