nixpkgs/nixos/modules
Jan Tojnar 47afdc4627 nixos/gnome: enable platform integration for Qt
Qt links against GTK to be able to use native GTK file chooser
in GTK-oriented DEs. However, GTK expects a specific environment,
which means the application needs to be wrapped to prevent crashes
when file chooser is opened in some environments.

This patch bypasses the need for wrapping Qt applications with GTK-related
environment since the file chooser dialogue will now come from a separate
process (instantiated by the XDG desktop portal via D-Bus).

In the future, we could remove the GTK dependency from Qt to fix the crashes
on non-{GNOME,Pantheon} environments. Then, users would be able to choose
between non-native Qt dialogue or native one facilitated by XDG portals
(e.g. through setting `QT_QPA_PLATFORMTHEME` to either `qgnomeplatform`,
or `xdgdesktopportal`).

One disadvantage is adding a Qt dependency to GNOME, even for people
who might not use any Qt apps. But they can easily just add `qt5.enable = false;`
to their NixOS configuration.

The configuration is also presumably less battle tested than plain Qt
with its first-party GTK integration. But it is backed by Fedora
and used by Manjaro GNOME so it cannot be that bad.

Lastly, I worry about ABI compatibility of the platform modules
with apps installed from different Nixpkgs revision.
2021-08-29 04:23:34 +02:00
..
config Merge pull request #133303 from rnhmjoj/cursor 2021-08-25 21:07:47 +02:00
hardware nixos/hardware.firmware: fix evaluation after PR #122463 2021-08-21 09:20:16 +02:00
i18n/input-method nixos/fcitx5: autostart with xserver 2021-06-05 09:22:58 +08:00
installer lib/modules: add mkImageMediaOverride 2021-08-03 18:28:14 -05:00
misc nixos: rewrite uhub module 2021-08-11 09:51:23 +02:00
profiles NixOS AWS AMI: enable the serial console on ttyS0 2021-08-20 12:42:02 -04:00
programs Merge pull request #131695 from tomfitzhenry/calls 2021-08-26 04:44:01 +02:00
security apparmor: Fix cups-client typo 2021-08-23 00:50:15 -07:00
services nixos/gnome: enable platform integration for Qt 2021-08-29 04:23:34 +02:00
system stage-1: fix copytoram option for loopback.cfg boot 2021-08-25 01:35:31 +00:00
tasks Merge pull request #105786 from teto/fstab 2021-08-26 05:53:25 +02:00
testing treewide: use perl.withPackages when possible 2021-03-31 21:35:37 +02:00
virtualisation NixOS/amazonImageZfs: init 2021-08-25 10:42:35 -04:00
module-list.nix Merge pull request #131695 from tomfitzhenry/calls 2021-08-26 04:44:01 +02:00
rename.nix quagga: remove 2021-04-22 12:48:48 +02:00