nixpkgs/nixos/doc/manual
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
..
administration installation-cd-base.nix: Add 'live.nixos.passwd' boot option 2021-07-03 09:53:16 +02:00
configuration Merge pull request #127085 from minijackson/xdg-desktop-portal-wlr-0.4.0-and-module 2021-06-25 03:50:44 +02:00
development Merge pull request #132583 from blaggacao/fix/soft-force-the-file-system-layout-for-boot-media 2021-08-17 22:36:41 +02:00
from_md nixos/gnome: enable platform integration for Qt 2021-08-29 04:23:34 +02:00
installation nixos/installer: simplify and document wifi setup 2021-08-15 12:08:32 +02:00
release-notes nixos/gnome: enable platform integration for Qt 2021-08-29 04:23:34 +02:00
.gitignore
contributing-to-this-manual.chapter.md nixos/doc: convert "Contributing to this manual" to CommonMark 2021-05-22 18:14:49 -07:00
default.nix treewide: fold -> foldr 2021-01-26 10:57:07 +07:00
Makefile nixos/doc/manual/Makefile: Do not format 2021-03-22 21:15:11 +01:00
man-configuration.xml
man-nixos-build-vms.xml nixos/doc/*: editorconfig fixes 2020-07-31 15:08:54 +10:00
man-nixos-enter.xml nixos/doc: Improve code listings 2020-09-23 01:25:25 +02:00
man-nixos-generate-config.xml
man-nixos-install.xml nixos-install: pass through keep-going flag 2020-10-31 17:13:45 +01:00
man-nixos-option.xml
man-nixos-rebuild.xml nixos/doc: Fix synopsis for nixos-rebuild(8) 2021-07-07 21:26:09 +00:00
man-nixos-version.xml nixos/doc: Improve code listings 2020-09-23 01:25:25 +02:00
man-pages.xml
manual.xml nixos/doc: convert "Contributing to this manual" to CommonMark 2021-05-22 18:14:49 -07:00
md-to-db.sh nixos/doc: Synchronize the Markdown generator with Nixpkgs 2021-06-18 00:07:00 +02:00
preface.xml Link to Libera, Matrix instead of Freenode 2021-07-06 16:35:37 +02:00
README.md nixos/manual: Fix link to contributing guide 2021-07-16 22:55:28 -07:00
shell.nix mkShell: introduce packages argument (#122180) 2021-05-13 19:17:29 +02:00