Files
home-manager/modules/misc/news/2026/06/2026-06-10_15-35-30.nix
T
Austin Horstman 153bad8fb5
/ triage (push) Has been skipped
GitHub Pages / publish (ubuntu-latest) (push) Failing after 1m19s
qt: stop rewriting platformTheme name gtk to gtk2
Setting `qt.platformTheme.name = "gtk"` silently rewrote the
QT_QPA_PLATFORMTHEME session variable to `gtk2` and pulled in the
qtstyleplugins and qt6gtk2 packages, which is not what users asked for
and relies on unmaintained packages. There is no `gtk` Qt platform
theme, so `gtk` now maps to Qt's built-in `gtk3` platform-theme plugin
and installs no extra packages.

Users who want the previous behavior can set
`qt.platformTheme.name = "gtk2"` explicitly, which keeps
QT_QPA_PLATFORMTHEME=gtk2 and installs qtstyleplugins and qt6gtk2. The
`qt.useGtkTheme` -> `qt.platformTheme` migration now maps the legacy
option to `{ name = "gtk2"; }` so existing configs are unaffected.

Fixes #8663
2026-06-19 12:28:04 -05:00

18 lines
648 B
Nix

{ config, ... }:
{
time = "2026-06-10T15:35:30+00:00";
condition = config.qt.enable;
message = ''
The value `gtk` for `qt.platformTheme.name` is no longer rewritten to
`gtk2` when setting the `QT_QPA_PLATFORMTHEME` session variable. It is
now emitted as `gtk3`, selecting Qt's built-in GTK platform theme plugin,
and no longer installs the `qtstyleplugins` and `qt6gtk2`
packages.
If you relied on the previous behavior, set
`qt.platformTheme.name = "gtk2"` explicitly, which sets
`QT_QPA_PLATFORMTHEME=gtk2` and installs the `qtstyleplugins` and
`qt6gtk2` packages providing that platform theme.
'';
}