-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gtk+ 2 doesn't recognize default themes #25838
Comments
Would be interested in this as well, currently my
:/ |
@pbogdan and with this change it works for you? |
@Mic92 yes, it does. Once I adjust |
if you install |
Just tested it and the chromium example worked for me. |
IIRC gtk+2 won't search through any of |
Some digging turned up this patch from our Guix friends 😄 - https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/patches/gtk2-theme-paths.patch - which enables gtk+2 to search through |
I had it in my profile, but system wide should working the same following the logic. Also just using ~/.gtkrc-2.0 was enough. You also have to really kill chromium. It tends to leave running background processes. |
Odd, gtk+2 doesn't look at |
Seems like I that this at some point:
|
Anything under |
All installations for me are global, and I'm using xmonad (gnome isn't installed and I'd like to avoid installing it if possible). It looks like the themes don't end up in
|
You do not need to install gnome, but gnome.gtk2 in systemPackages, which is already there (but not linked in /nix/store/d0f84nizpwdj6aiss7051ixn0aqakqwh-system-path) if you already have any gtk2 application like chromium. |
Oh, sorry, misunderstood. It's definitely not linked in my case, either to |
I mean you have to explicitly add it to |
Oh, actually that seems to have done the trick. Incidentally, I'd tried that
earlier with gtk2-x11 but it didn't work—what is the difference between the two
packages?
I still feel like it might make sense to either document the behavior better or
to auto-link when it isn't explicitly included in `systemPackages` though.
|
Actually I spoke too soon--it is linked to |
this is actually the same as the system-path package:
|
Oh, actually I got it working--the problem was that (For the record, using xmonad.) |
I will also port the GUIX patch to nixos: #25881 |
Issue description
gtk+ 2 comes with a few default themes ("Default", "Raleigh", and "Emacs"), but by default gtk apps don't seem to be able to pick them up.
Steps to reproduce
chromium
(through /etc/nixos/configuration.nix)echo 'gtk-key-theme-name="Emacs"' >> ~/.gtkrc-2.0
Expected: Uses Emacs keybindings
Actual: Uses default keybindings
(I was able to work around the issue by copying from the nix store for gtk to ~/.themes.)
Technical details
17.03.1152.22da5d0246 (Gorilla)
nix-env (Nix) 1.11.8
"17.03.1152.22da5d0246"
build-use-sandbox = false
The text was updated successfully, but these errors were encountered: