Skip to content

nixos/gnome: Do not force Qt apps to Adwaita - #210077

Merged
jtojnar merged 2 commits into
NixOS:masterfrom
jtojnar:gnome-no-adwaita-qt
Aug 12, 2023
Merged

jtojnar merged 2 commits into
NixOS:masterfrom
jtojnar:gnome-no-adwaita-qt

Conversation

@jtojnar

@jtojnar jtojnar commented Jan 10, 2023

Copy link
Copy Markdown
Member
Description of changes

adwaita-qt tries valiantly to ensure a visual consistency but unfortunately, it often falls into an uncanny valley instead. Let’s make it opt-in again for more vanilla default experience.

Related: https://pagure.io/fedora-workstation/issue/351

cc @bobby285271

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.05 Release Notes (or backporting 22.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@github-actions github-actions Bot added 6.topic: GNOME GNOME desktop environment and its underlying platform 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation 8.has: module (update) This PR changes an existing module in `nixos/` labels Jan 10, 2023
@ofborg ofborg Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Jan 10, 2023
@bobby285271

bobby285271 commented Jan 11, 2023 •

Copy link
Copy Markdown
Member

I personally am actually quite happy with the current status of Adwaita-qt, but I am okay to change the defaults if users do complain about that. Or do we wait for Fedora to patch their QGnomePlatform not to use Adwaita-qt since Fedora does not seem to have plans to drop QGnomePlatform? #245166 (comment)

@jtojnar

jtojnar commented May 20, 2023 •

Copy link
Copy Markdown
Member Author

Another issue is that some Qt 6 apps do not display anything – GNOME Shell only shows a completely transparent window.

Noticed with #232527 in Wayland session (tried with #232527 as well), nothing in the console. It works fine with qt.enable = false. On X11 it is only transparent sometimes but it still has broken titlebar:

Caesium on X11 with broken titlebar

Weirdly, at least one Qt 6 app (qalculate-qt) works (with complains):

qt.core.plugin.loader: In /nix/store/lmd3dhjhgh1r0dl26xp8vqaqdz783hxs-qgnomeplatform-0.8.4/lib/qt-5.15.9/plugins/platformthemes/libqgnomeplatformtheme.so:
  Plugin uses incompatible Qt library (5.15.0) [release]
qt.dbus.integration: Could not connect "org.freedesktop.IBus" to globalEngineChanged(QString)
qt.core.plugin.loader: In /nix/store/vmahwgvx9v7p0acn8fxlxqhdss9k8iv9-adwaita-qt-1.4.1/lib/qt-5.15.9/plugins/styles/adwaita.so:
  Plugin uses incompatible Qt library (5.15.0) [release]

@jtojnar jtojnar mentioned this pull request May 20, 2023
6 of 15 tasks
@jtojnar
jtojnar force-pushed the gnome-no-adwaita-qt branch from d61d4b5 to bb59183 Compare June 3, 2023 16:05
@bobby285271 bobby285271 mentioned this pull request Aug 11, 2023
12 tasks
adwaita-qt tries valiantly to ensure a visual consistency
but unfortunately, it often falls into an uncanny valley instead.
Let’s make it opt-in again for more vanilla default experience.

Related: https://pagure.io/fedora-workstation/issue/351
@jtojnar
jtojnar force-pushed the gnome-no-adwaita-qt branch from bb59183 to 6222246 Compare August 11, 2023 17:57
@jtojnar

jtojnar commented Aug 11, 2023

Copy link
Copy Markdown
Member Author

The upstream is now officially not maintained so let’s merge this.

@jtojnar
jtojnar merged commit bb92c02 into NixOS:master Aug 12, 2023
@jtojnar
jtojnar deleted the gnome-no-adwaita-qt branch August 12, 2023 08:29
@zendo zendo mentioned this pull request Aug 31, 2023
3 of 12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: GNOME GNOME desktop environment and its underlying platform 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants