Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
Network File Sharing
Commits
762748a5
Commit
762748a5
authored
Mar 22, 2022
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
samba/filepropertiesplugin/sambausershareplugin.cpp
View file @
762748a5
...
...
@@ -29,7 +29,7 @@
#include
<KSambaShare>
#include
<KSambaShareData>
#include
<KService>
#include
<KIO/
Application
LauncherJob>
#include
<KIO/
Command
LauncherJob>
#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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment