using a desktop file with substituteuid=true and an exec line that contains option switches screws with both su -c and kdesu -c as both need to be quoted (one presumes anyway) e.g. argumentList is: > /usr/bin/kdesu -u root -c /usr/bin/do-release-upgrade -m desktop -f DistUpgradeViewKDE but should be something like > /usr/bin/kdesu -u root -c '/usr/bin/do-release-upgrade -m desktop -f DistUpgradeViewKDE' cat ~/.local/share/applications/muon-release-upgrade.desktop [Desktop Entry] Categories=Qt;KDE;System; Exec=do-release-upgrade -m desktop -f DistUpgradeViewKDE GenericName=Release Upgrader Icon=system-software-update Name=Release Upgrader NoDisplay=true Type=Application X-KDE-SubstituteUID=true KService::Ptr service = KService::serviceByDesktopName(QLatin1String("muon-release-upgrade")); KIO::DesktopExecParser parser(*service, QList<QUrl>()); QProcess::startDetached(parser.resultingArguments().join(' ')); leads to Unknown option 'm'. Reproducible: Always
Thank you for the bug report. As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists. If this bug is no longer persisting or relevant please change the status to resolved.