1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-27 15:02:50 -05:00

Add Desktop Actions to launcher + dock

This commit is contained in:
bbedward
2025-10-06 09:35:50 -04:00
parent 2b3b9d037c
commit 3524d365be
5 changed files with 234 additions and 7 deletions

View File

@@ -101,6 +101,19 @@ Singleton {
});
}
function launchDesktopAction(desktopEntry, action) {
let cmd = action.command
if (SessionData.launchPrefix && SessionData.launchPrefix.length > 0) {
const launchPrefix = SessionData.launchPrefix.trim().split(" ")
cmd = launchPrefix.concat(cmd)
}
Quickshell.execDetached({
command: cmd,
workingDirectory: desktopEntry.workingDirectory,
});
}
// * Session management
function logout() {
if (hasUwsm) {