diff --git a/configs/shared/.emacs.d/wpc/wallpaper.el b/configs/shared/.emacs.d/wpc/wallpaper.el index 63548964b..841fe5428 100644 --- a/configs/shared/.emacs.d/wpc/wallpaper.el +++ b/configs/shared/.emacs.d/wpc/wallpaper.el @@ -31,8 +31,15 @@ "My preferred computer wallpapers.") (defun wallpaper/set (path) - "Set computer wallpaper to image at `PATH' using `feh` under-the-hood." - (shell-command (string/format "feh --bg-scale --no-fehbg %s" path))) + "Set computer wallpaper to image at `PATH' using `feh` under-the-hood. +`PATH' can be absolute or relative since `f-expand' is called in the function + body to ensure feh can resolve the path." + (start-process "*feh*" + nil + "feh" + "--bg-scale" + "--no-feh-bg" + (f-expand path))) (defun wallpaper/whitelist-set (wallpaper) "Focuses the WALLPAPER in the `wallpaper/whitelist' cycle."