1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-07 14:05:38 -05:00

Auto-detect wallpaper changes, prefs in ~/.config/DankMaterialShell

This commit is contained in:
bbedward
2025-07-11 16:14:59 -04:00
parent 5a9ef71f75
commit 75cb1ead2f
5 changed files with 165 additions and 34 deletions

View File

@@ -934,13 +934,19 @@ PanelWindow {
function start(exec) {
// Clean up exec command (remove field codes)
var cleanExec = exec.replace(/%[fFuU]/g, "").trim()
command = ["sh", "-c", cleanExec]
console.log("Launching app - Original:", exec, "Cleaned:", cleanExec)
// Use setsid to fully detach from shell session
command = ["setsid", "sh", "-c", cleanExec]
running = true
}
onExited: {
onExited: (exitCode) => {
if (exitCode !== 0) {
console.log("Failed to launch application, exit code:", exitCode)
console.log("Command was:", command)
} else {
console.log("App launch command completed successfully")
}
}
}