summaryrefslogtreecommitdiff
path: root/services/Apps.qml
diff options
context:
space:
mode:
Diffstat (limited to 'services/Apps.qml')
-rw-r--r--services/Apps.qml18
1 files changed, 5 insertions, 13 deletions
diff --git a/services/Apps.qml b/services/Apps.qml
index b78d642..453030d 100644
--- a/services/Apps.qml
+++ b/services/Apps.qml
@@ -5,7 +5,6 @@ import "root:/widgets"
import "root:/config"
import Quickshell
import Quickshell.Io
-import QtQuick
Singleton {
id: root
@@ -24,22 +23,15 @@ Singleton {
}
function launch(entry: DesktopEntry): void {
- launchProc.createObject(root, {
- entry
- });
+ launchProc.entry = entry;
+ launchProc.startDetached();
}
- Component {
+ Process {
id: launchProc
- Process {
- required property DesktopEntry entry
+ property DesktopEntry entry
- command: ["app2unit", "--", `${entry.id}.desktop`]
- Component.onCompleted: {
- startDetached();
- destroy();
- }
- }
+ command: ["app2unit", "--", `${entry.id}.desktop`]
}
}