Conversation
This should hopefully prevent the crashes of unwrapped apps using GTK file chooser.
| + g_autoptr(GSettingsSchemaSource) schema_source; | ||
| + g_autoptr(GSettingsSchema) schema; | ||
| + schema_source = g_settings_schema_source_new_from_directory("@gtk@", | ||
| + g_settings_schema_source_get_default(), |
There was a problem hiding this comment.
Since we are calling lookup with recursive=FALSE, the parent argument is actually pointless and can just be NULL.
| prePatch = '' | ||
| substitute ${./patches/3.0-hardcode-gsettings.patch} hardcode-gsettings.patch \ | ||
| --subst-var-by gtk ${glib.makeSchemaPath "$out" "${finalAttrs.pname}-${finalAttrs.version}"} | ||
| patches="$patches $PWD/hardcode-gsettings.patch" |
| + schema_source = g_settings_schema_source_new_from_directory("@gtk@", | ||
| + g_settings_schema_source_get_default(), | ||
| + TRUE, NULL); | ||
| + schema = g_settings_schema_source_lookup(schema_source, "org.gtk.Demo", |
There was a problem hiding this comment.
The default schema source is what implements overriding schema with environment variables so when we do not use it, the extraGSettingsOverrides NixOS option will be without effect.
We should probably tweak the patch to check the default schema first and only look in the hardcoded one when the schema is missing in the default one.
|
Typo on "gsettinGs" |
Can we then remove them from all the wrapper? |
Yeah, hopefully, this would make |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
|
This seems to be a bigger concern with the 25.11 and the gnome/gtk there. Can we revive this and merge it? |
Description of changes
This should hopefully prevent the crashes of unwrapped apps using GTK file chooser.
Fixes: #149812
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Priorities
Add a 👍 reaction to pull requests you find important.