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
18 lines
648 B
Nix
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.
|
|
'';
|
|
}
|