lux-shell/modules/launcher/services/Apps.qml
Benjamin Palko d219f493ce launcher v1
2025-08-20 00:00:21 -04:00

22 lines
631 B
QML

pragma Singleton
import qs.utils
import Quickshell
import QtQuick
FuzzySearch {
list: DesktopEntries.applications.values.filter(a => !a.noDisplay).sort((a, b) => a.name.localeCompare(b.name))
function launch(entry: DesktopEntry): void {
if (entry.runInTerminal)
Quickshell.execDetached({
command: ["kitty", "exec", ...entry.command],
workingDirectory: entry.workingDirectory
});
else
Quickshell.execDetached({
command: [...entry.command],
workingDirectory: entry.workingDirectory
});
}
}