Commit 762748a5 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Fix opening of samba KInfoCenter KCM

BUG: 451091


(cherry picked from commit 06b22a64)
parent 9e185f7f
Pipeline #153459 passed with stage
in 43 seconds
......@@ -29,7 +29,7 @@
#include <KSambaShare>
#include <KSambaShareData>
#include <KService>
#include <KIO/ApplicationLauncherJob>
#include <KIO/CommandLauncherJob>
#include "model.h"
#include "usermanager.h"
......@@ -233,12 +233,9 @@ bool SambaUserSharePlugin::isSambaInstalled()
void SambaUserSharePlugin::showSambaStatus()
{
KService::Ptr kcm = KService::serviceByStorageId(QStringLiteral("smbstatus"));
if (!kcm) {
// TODO: meh - we have no availability handling. I may have a handy class in plasma-disks
return;
}
KIO::ApplicationLauncherJob(kcm).start();
auto job = new KIO::CommandLauncherJob(QStringLiteral("kinfocenter"), {QStringLiteral("kcm_samba")});
job->setDesktopName(QStringLiteral("kinfocenter"));
job->start();
}
void SambaUserSharePlugin::applyChanges()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment