nixpkgs/nixos/modules/services/x11/desktop-managers
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
..
cde.nix treewide: remove gnidorah 2021-04-30 01:48:19 +02:00
cinnamon.nix nixos/desktop-managers/cinnamon: add bulky as default app 2021-06-10 09:38:47 +02:00
default.nix gnome: rename from gnome3 2021-05-08 09:47:42 +02:00
enlightenment.nix enlightenment.enlightenment: fix setuid wrappers 2020-05-24 00:22:53 -03:00
gnome.nix nixos/gnome: enable platform integration for Qt 2021-08-29 04:23:34 +02:00
gnome.xml gnome-flashback: add option to remove gnome-panel, auto-generate wmName 2021-05-28 13:10:17 +02:00
kodi.nix nixos/kodi: add package option 2021-03-29 16:47:30 -04:00
lumina.nix nixos/lumina: use xsession provided 2020-05-25 12:16:48 -03:00
lxqt.nix Merge pull request #121031 from romildo/fix.lxqt 2021-05-23 15:06:55 -03:00
mate.nix gnome: rename from gnome3 2021-05-08 09:47:42 +02:00
none.nix Revert "nixos/none: remove" 2020-04-02 04:07:18 -04:00
pantheon.nix gnome: rename from gnome3 2021-05-08 09:47:42 +02:00
pantheon.xml nixos/pantheon: fix doc typo 2020-04-29 01:20:03 -04:00
plasma5.nix plasma5: install plasma-systemmonitor by default 2021-08-05 17:01:19 +09:00
surf-display.nix nixos/display-manager: extraSessionFilePackages -> sessionPackages 2019-12-15 04:14:56 +01:00
xfce.nix Merge #121780: treewide meta.maintainers tweaks 2021-05-08 10:47:08 +02:00
xterm.nix xterm: Set default to xserver.enable 2019-09-19 12:27:05 +01:00