Open Thra11 opened 3 months ago
Related pr: https://github.com/NixOS/nixpkgs/pull/296619
I think kcmutils needs to propagate kirigamiaddons. What do you think @K900 ?
kcmutils shouldn't, plasma-pa should, if anything, but then we have the whole propagatedUserEnvPackages mess again...
I agree that it should be plasma-pa that has the dependencies. The KCM (KDE Configuration Modules) are supposed to be modular, so each module should include its own dependencies. If we suppose that plasma-pa
is the only KCM module whose config GUI needs kirigami-addons
(It almost certainly isn't in reality), then in theory it should be possible for a system without plasma-pa
to install and use systemsettings
without pulling in kirigami-addons
.
I experimented with adding kirigami-addons
and kitemmodels
to pkgs/kde/plasma/plasma-pa/default.nix
, but neither adding them to extraBuildInputs
nor extraPropagatedBuildInputs
made any difference.
On a 'conventional' linux system, all these dependencies would install their bits in the same location e.g. /usr/share/qt6/plugins
or something, which would be included in an environment variable such as QT_PLUGIN_PATH, so . On NixOS, I believe it adds each individual /nix/store/<package>/share/whatever
to the environment variable, but I haven't yet had a chance to study how NixOS constructs qt6 / plasma 6 plugins paths.
Random thoughts:
Describe the bug
Plasma 6 KDE Config Modules don't work outside a plasma 6 session.
Steps To Reproduce
Steps to reproduce the behavior:
systemsettings kcm_pulseudio
from a terminalExpected behavior
The plasma5 equivalent,
systemsettings5
, can be run outside of the plasma session. It is useful to be able to set some KDE settings even if you're not actually running KDE/plasma (e.g. if you use KDE applications, you can configure their behaviour and appearance).Actual behaviour
The KCM GUI can't find some of its runtime dependencies (kirigami-addons for this specific KCM: others have other missing dependencies) when run outside of a plasma6 session. The following appears in a terminal.
The system settings application UI appears, but the "Sound" / pulseaudio page doesn't load and displays the same errors "Error loading QML file." and "qrc:/kcm/kcm_pulseaudio/main.qml:19 module "org.kde.kirigamiaddons.components" is not installed" instead.
I assume plasma6 must be setting the
QT_PLUGIN_PATH
or some other environment variable to include the runtime qml dependencies that the kcm modules need.Notify maintainers
@NixOS/qt-kde
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.