Skip to content

Commit

Permalink
Merge pull request #10 from declanqian/screenshot-executable-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
volrath authored Jan 28, 2022
2 parents 04998c8 + 47af75e commit be3a00a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion password-store-otp.el
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@

(defun password-store-otp--get-screenshot-executable ()
"Return the name of the executable that should be used to take screenshots."
(if (eq window-system 'mac) "screencapture" "import"))
(if (and (eq system-type 'darwin)
(executable-find "screencapture")) "screencapture" "import"))

(defun password-store-otp--otpauth-lines (lines)
"Return from LINES those that are OTP urls."
Expand Down

0 comments on commit be3a00a

Please sign in to comment.