kcm_phonon doesn't exist since plasma 5.17 anymore.
Pulseaudio enabled builds depend on 'kcm_pulseaudio' from plasma-pa,
others use 'phononsettings'.
See D22616
kcm_phonon doesn't exist since plasma 5.17 anymore.
Pulseaudio enabled builds depend on 'kcm_pulseaudio' from plasma-pa,
others use 'phononsettings'.
See D22616
No Linters Available |
No Unit Test Coverage |
Buildable 24153 | |
Build 24171: arc lint + arc unit |
I'm aware that the proposed change is still far from optimal as the error handling doesn't work for missing kcm modules and still may result in silent errors for the user.
If you think rewriting that to verify the kcm actual exists is the way to go, please say so. I was reluctant to add the KF5Service dependency to enumerate kcms (at least i see kcmshell uses that).
Same check should imo also be added for phononsettings. This is shipped with phonon package, but kmix only indirectly pulls in that via knotifications, where it is optional.
If phononsettings is missing/uncallable the message box inf KMixWindow::forkExec is shown providing at least some feedback.
For the kcmshell5 call, KProcess::startDetached is able to start the process - but that fails internally. I don't see a way to fix that in this 'fire and forget' style besides validating kcm_pulseaudio is available.
Yeah, i consider it the better option.
Depending on kcm_pulseaudio which comes with plasma-pa is rather moot as plasma-pa disables kmix.