summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-02 23:35:22 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-02 23:35:22 +1000
commit587c3a7bc90118d3cf235307a07a153f52dd3d88 (patch)
tree56f94e3a25bd7e390482c0771726441082f3d7e5 /services
parentrefactor: move launcher app list into separate file (diff)
downloadcaelestia-shell-587c3a7bc90118d3cf235307a07a153f52dd3d88.tar.gz
caelestia-shell-587c3a7bc90118d3cf235307a07a153f52dd3d88.tar.bz2
caelestia-shell-587c3a7bc90118d3cf235307a07a153f52dd3d88.zip
feat: launcher keyboard nav
Using currentitem and highlight Also fix not closing launcher when clicking app Apps service use only one process
Diffstat (limited to 'services')
-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`]
}
}