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