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
gnome.nautilus: use the gtk4 FileChooser settings schema (fixes crash-on-start) #195985
Conversation
@ofborg build gnome.nautilus |
this is merged upstream now. i don't know much about the GNOME release cycle, but i think the fix made it in before the 43.1 cut, meaning the issue this PR addresses should be fixed when we bump nixpkgs 43.0 -> 43.1. ordinarily i'd close this PR now, but i see it's marked as a 22.11 blocker and i don't know the workflow around that. if it's still open by the time 43.1 is merged into nixpkgs i'll come back and close this after confirming the fix. |
Nautilus 43.1 will likely release today so it should be fine. |
So we wanna wait or merge this? |
I think we can afford to wait a little longer, unless 43.1 isn't happening for nautilus at all anymore. GDM never got any minor releases last cycle, so I'm not sure what the situation is. |
GDM is a bit understaffed. Nautilus maintainers talked about making a release on Matrix so they are probably just fixing last few bugs. |
730a802
to
775b98c
Compare
…-on-start) upstream PR for more context: <https://gitlab.gnome.org/GNOME/nautilus/-/merge_requests/1013> with the recent nixpkgs bump from GNOME 42 -> 43, we build nautilus with gtk4 (as upstream expects). if the user has nothing else in their environment providing gtk3, then nautilus fails to locate a gtk3 gsettings schema it depends on. i.e. ```console $ nautilus (org.gnome.Nautilus): GLib-GIO-ERROR **: Settings schema 'org.gtk.Settings.FileChooser' is not installed ``` we could solve this on our end by adding gtk3 to `gappsWrapperArgs`, but this seems like an upstream bug: i believe they mean to use the gtk4 settings schemas instead of the legacy gtk3 ones.
775b98c
to
b417c14
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let’s get this in, Nautilus maintainers still want to fix few more crashes before making a release.
Has anyone tried these patches? While it doesn't crash, |
@gvolpe It was tested in GNOME Shell so the environment accidentally contains GTK 3 schemas, preventing this crash from being encountered. Nautilus 43 switched to libadwaita so the expected way to switch to dark theme is using I have not encountered any slowness problems. |
@jtojnar thanks, I was talking about the patches being applied in this PR. I have an overlay with these patches on my system, but I'm experiencing slowness on every operation on Nautilus after updating to this version with |
@jtojnar I understand this may be a Nautilus bug, but it is nearly unusable for me, so I had to revert to the GTK3 version. Leaving this here in case someone else experiences the same issue: gvolpe/nix-config@397c9a8 |
@gvolpe maybe, if you have time, you can jump on https://matrix.to/#/#nautilus:gnome.org and help Nautilus developers debug this. So far, they have not been able to reproduce it. |
Thanks @jtojnar , I joined the room. I'm thinking it could be because the icon theme I use is based on gtk3, so it may conflict with nautilus' gtk4? And the theme I use only refers to |
@gvolpe Icon themes do not really have anything to do with specific versions of GTK. Theme engines are GTK 2 thing so that is not relevant either. In fact, with libadwaita, custom theme will not be used, unless you explicitly force it using |
Hmm I'm out of ideas then -_- |
upstream PR for more context: https://gitlab.gnome.org/GNOME/nautilus/-/merge_requests/1013
with the recent nixpkgs bump from GNOME 42 -> 43, we build nautilus with gtk4 (as upstream expects). if the user has nothing else in their environment providing gtk3, then nautilus fails to locate a gtk3 gsettings schema it depends on. i.e.
we could solve this on our end by adding gtk3 to
gappsWrapperArgs
, but this seems like an upstream bug: i believe they mean to use the gtk4 settings schemas instead of the legacy gtk3 ones.Description of changes
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes