forked from Shinonome/dots-hyprland
Wallpapers: use Process::exec instead of setting command and setting running prop
This commit is contained in:
@@ -35,12 +35,11 @@ Singleton {
|
|||||||
|
|
||||||
function apply(path) {
|
function apply(path) {
|
||||||
if (!path || path.length === 0) return
|
if (!path || path.length === 0) return
|
||||||
applyProc.command = [
|
applyProc.exec([
|
||||||
"bash", "-c",
|
"bash", "-c",
|
||||||
`${StringUtils.shellSingleQuoteEscape(Directories.wallpaperSwitchScriptPath)} ` +
|
`${StringUtils.shellSingleQuoteEscape(Directories.wallpaperSwitchScriptPath)} ` +
|
||||||
`--image ${StringUtils.shellSingleQuoteEscape(path)}`
|
`--image ${StringUtils.shellSingleQuoteEscape(path)}`
|
||||||
]
|
])
|
||||||
applyProc.running = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Folder model
|
// Folder model
|
||||||
|
|||||||
Reference in New Issue
Block a user