Wallpapers: use Process::exec instead of setting command and setting running prop

This commit is contained in:
end-4
2025-08-18 21:02:03 +07:00
parent 28fe7817b4
commit 42695d9253
@@ -35,12 +35,11 @@ Singleton {
function apply(path) {
if (!path || path.length === 0) return
applyProc.command = [
applyProc.exec([
"bash", "-c",
`${StringUtils.shellSingleQuoteEscape(Directories.wallpaperSwitchScriptPath)} ` +
`--image ${StringUtils.shellSingleQuoteEscape(path)}`
]
applyProc.running = true
])
}
// Folder model