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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user