mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 23:42:51 -05:00
launcher: set default launch prefix, if launching from systemd
- prevents apps dying when stopping the systemd unit
This commit is contained in:
@@ -152,7 +152,9 @@ Singleton {
|
||||
cmd = ["prime-run"].concat(cmd)
|
||||
}
|
||||
|
||||
const prefix = SettingsData.launchPrefix?.trim() || ""
|
||||
const userPrefix = SettingsData.launchPrefix?.trim() || ""
|
||||
const defaultPrefix = Quickshell.env("DMS_DEFAULT_LAUNCH_PREFIX") || ""
|
||||
const prefix = userPrefix.length > 0 ? userPrefix : defaultPrefix
|
||||
|
||||
if (prefix.length > 0 && needsShellExecution(prefix)) {
|
||||
const escapedCmd = cmd.map(arg => escapeShellArg(arg)).join(" ")
|
||||
@@ -181,7 +183,9 @@ Singleton {
|
||||
cmd = ["prime-run"].concat(cmd)
|
||||
}
|
||||
|
||||
const prefix = SettingsData.launchPrefix?.trim() || ""
|
||||
const userPrefix = SettingsData.launchPrefix?.trim() || ""
|
||||
const defaultPrefix = Quickshell.env("DMS_DEFAULT_LAUNCH_PREFIX") || ""
|
||||
const prefix = userPrefix.length > 0 ? userPrefix : defaultPrefix
|
||||
|
||||
if (prefix.length > 0 && needsShellExecution(prefix)) {
|
||||
const escapedCmd = cmd.map(arg => escapeShellArg(arg)).join(" ")
|
||||
|
||||
Reference in New Issue
Block a user