lux-shell/modules/launcher/services/Apps.qml
Benjamin Palko 24930ef2e0 alacritty
2025-11-24 14:02:02 -05:00

22 lines
671 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: ["app2unit", "--", "alacritty", "exec", ...entry.command],
workingDirectory: entry.workingDirectory
});
else
Quickshell.execDetached({
command: ["app2unit", "--", ...entry.command],
workingDirectory: entry.workingDirectory
});
}
}