mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
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) {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user