From 7ab4493c756a566339734b478a3e2eb91ad6f608 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Sat, 20 Nov 2021 12:27:03 -0800 Subject: refactor(wpcarro/emacs): Prefer $PATH resolution of scrot ...instead of the harder dependency on the installation location. Change-Id: Ifdde2ab8b3b6069c653012ad5599007d4467a188 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4815 Tested-by: BuildkiteCI Reviewed-by: wpcarro Autosubmit: wpcarro --- users/wpcarro/emacs/.emacs.d/wpc/scrot.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'users/wpcarro') diff --git a/users/wpcarro/emacs/.emacs.d/wpc/scrot.el b/users/wpcarro/emacs/.emacs.d/wpc/scrot.el index d84a614806c6..08994fea5fda 100644 --- a/users/wpcarro/emacs/.emacs.d/wpc/scrot.el +++ b/users/wpcarro/emacs/.emacs.d/wpc/scrot.el @@ -26,9 +26,6 @@ (defconst scrot-screenshot-directory "~/Downloads" "The default directory for screenshot outputs.") -(defconst scrot-path-to-executable "/usr/bin/scrot" - "Path to the scrot executable.") - (defconst scrot-output-format "screenshot_%H:%M:%S_%Y-%m-%d.png" "The format string for the output screenshot file. See scrot's man page for more information.") @@ -48,7 +45,7 @@ The output path is copied to the user's clipboard." (ts-format scrot-output-format (ts-now))))) (make-process :name "scrot-select" - :command `(,scrot-path-to-executable "--select" ,screenshot-path) + :command `("scrot" "--select" ,screenshot-path) :sentinel (lambda (proc _err) (when (= 0 (process-exit-status proc)) (scrot--copy-image screenshot-path)))))) -- cgit 1.4.1