about summary refs log tree commit diff
path: root/users/wpcarro/emacs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2021-11-20T20·27-0800
committerclbot <clbot@tvl.fyi>2022-01-08T05·47+0000
commit7ab4493c756a566339734b478a3e2eb91ad6f608 (patch)
treedbae7310fca637f477e6621096d066e883f7a153 /users/wpcarro/emacs
parentff6e1adb8aa19b6dc8789dea4a4009617ebf1164 (diff)
refactor(wpcarro/emacs): Prefer $PATH resolution of scrot r/3546
...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 <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Diffstat (limited to 'users/wpcarro/emacs')
-rw-r--r--users/wpcarro/emacs/.emacs.d/wpc/scrot.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/users/wpcarro/emacs/.emacs.d/wpc/scrot.el b/users/wpcarro/emacs/.emacs.d/wpc/scrot.el
index d84a614806..08994fea5f 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))))))