Skip to content

Commit 5c26b93

Browse files
committed
Fixed open ksysguard on click
1 parent 0856bdb commit 5c26b93

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

package/contents/ui/main.qml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,6 @@ Item {
7373
Kio.KRun {
7474
id: kRun
7575
}
76-
77-
// We need to get the full path to KSysguard to be able to run it
78-
PlasmaCore.DataSource {
79-
id: apps
80-
engine: 'apps'
81-
property string ksysguardSource: 'org.kde.ksysguard.desktop'
82-
connectedSources: [ ksysguardSource ]
83-
}
8476

8577
PlasmaCore.DataSource {
8678
id: dataSource
@@ -570,7 +562,7 @@ Item {
570562
id: mouseArea
571563
anchors.fill: parent
572564
onClicked: {
573-
kRun.openUrl(apps.data[apps.ksysguardSource].entryPath)
565+
kRun.openService("org.kde.ksysguard")
574566
}
575567
}
576568

0 commit comments

Comments
 (0)