Merge branch 'main' of github.com:noctalia-dev/noctalia-shell
This commit is contained in:
commit
7feab63e5b
3 changed files with 13 additions and 1 deletions
|
|
@ -278,6 +278,7 @@ Singleton {
|
||||||
property string position: "center"
|
property string position: "center"
|
||||||
property real backgroundOpacity: 1.0
|
property real backgroundOpacity: 1.0
|
||||||
property list<string> pinnedExecs: []
|
property list<string> pinnedExecs: []
|
||||||
|
property bool useApp2Unit: false
|
||||||
}
|
}
|
||||||
|
|
||||||
// dock
|
// dock
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,11 @@ Item {
|
||||||
"isImage": false,
|
"isImage": false,
|
||||||
"onActivate": function () {
|
"onActivate": function () {
|
||||||
Logger.log("ApplicationsPlugin", `Launching: ${app.name}`)
|
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()
|
app.execute()
|
||||||
} else if (app.exec) {
|
} else if (app.exec) {
|
||||||
// Fallback to manual execution
|
// Fallback to manual execution
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,13 @@ ColumnLayout {
|
||||||
onToggled: checked => Settings.data.appLauncher.enableClipboardHistory = checked
|
onToggled: checked => Settings.data.appLauncher.enableClipboardHistory = checked
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NToggle {
|
||||||
|
label: "Use App2Unit for Launching"
|
||||||
|
description: "Use app2unit -- 'desktop-entry' when launching applications for better systemd integration."
|
||||||
|
checked: Settings.data.appLauncher.useApp2Unit
|
||||||
|
onToggled: checked => Settings.data.appLauncher.useApp2Unit = checked
|
||||||
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
spacing: Style.marginXXS * scaling
|
spacing: Style.marginXXS * scaling
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue