Launcher: add app2unit options (hopefully)
This commit is contained in:
parent
a4c98f1382
commit
2533c52e27
3 changed files with 13 additions and 1 deletions
|
|
@ -82,7 +82,11 @@ Item {
|
|||
"isImage": false,
|
||||
"onActivate": function () {
|
||||
Logger.log("ApplicationsPlugin", `Launching: ${app.name}`)
|
||||
if (app.execute) {
|
||||
|
||||
if (Settings.data.appLauncher.useApp2Unit && app.id) {
|
||||
Logger.log("ApplicationsPlugin", `Using app2unit for: ${app.id}`)
|
||||
Quickshell.execDetached(["app2unit", "--", app.id])
|
||||
} else if (app.execute) {
|
||||
app.execute()
|
||||
} else if (app.exec) {
|
||||
// Fallback to manual execution
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue