keepassxc: add 'wrapGAppsHook' to fix FileChooser error (see also: https://github.com/NixOS/nixpkgs/issues/111368)#140470
Conversation
|
Huh, that's interesting, KeepassXC is not a GTK application, however apparently it's possible to configure Qt applications to use GTK with |
| ''; | ||
|
|
||
| nativeBuildInputs = [ asciidoctor cmake wrapQtAppsHook qttools pkg-config ]; | ||
| nativeBuildInputs = [ asciidoctor cmake wrapGAppsHook wrapQtAppsHook qttools pkg-config ]; |
There was a problem hiding this comment.
This double wraps the binary if I am not mistaken. Please add the wrapper arguments to wrapperArgs.
There was a problem hiding this comment.
is this a valid fix to your concerns? (taken from https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/gnome.section.md)
There was a problem hiding this comment.
|
What issue did this fix? I've never heard of this problem. |
|
@turion keepassxc crashes on selecting the location for the new DB file under a fresh nixos+gnome install. |
|
That explains why it doesn't have any problems in KDE. |
| ''; | ||
|
|
||
| nativeBuildInputs = [ asciidoctor cmake wrapQtAppsHook qttools pkg-config ]; | ||
| nativeBuildInputs = [ asciidoctor cmake wrapGAppsHook wrapQtAppsHook qttools pkg-config ]; |
There was a problem hiding this comment.
|
|
||
| preFixup = optionalString stdenv.isDarwin '' | ||
| preFixup = '' | ||
| qtWrapperArgs+=("''${gappsWrapperArgs[@]}") |
There was a problem hiding this comment.
I am not sure if this is enough.
|
Why is double wrapping a problem? To me it looks like a more maintainable and clear solution. |
|
I agree with @turion that double-wrapping should be the way to go, since it is the most maintainable solution. Should I change this back? |
|
Double wrapping is a problem because Linux does not support passing setting |
|
I marked this as stale due to inactivity. → More info |
Ah, ok. Quite a few (~ 10) programs in nixpkgs do this, though. Since this seems like a popular thing to do, and they all do it wrong, allegedly, maybe there should be a standard "double wrapper" |
|
can't repro the error on master |
|
This is my fault. I added double wrapping in #163608, not realizing that there are downsides. For |
Motivation for this change
KeePassXC failed creating a DB with
GLib-GIO-ERROR **: 11:16:48.748: Settings schema 'org.gtk.Settings.FileChooser' is not installed.Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)