diff --git a/modules/email/mu4e/autoload/advice.el b/modules/email/mu4e/autoload/advice.el index 9e29527f6..fbfa64253 100644 --- a/modules/email/mu4e/autoload/advice.el +++ b/modules/email/mu4e/autoload/advice.el @@ -36,10 +36,9 @@ clicked." (list :width (format "%.1fpx" (/ (string-to-number - (shell-command-to-string - ;; TODO change to use 'file' - (format "identify -format %%w %s" - (substring img-uri 7)))) ; 7=(length "file://") + ;; TODO change to use 'file' + (doom-call-process "identify" "-format" "%w" + (substring img-uri 7))) ; 7=(length "file://") (plist-get org-format-latex-options :scale)))) (list :style (format "transform: scale(%.3f)" (/ 1.0 (plist-get org-format-latex-options :scale)))))) diff --git a/modules/email/mu4e/autoload/mu-lock.el b/modules/email/mu4e/autoload/mu-lock.el index 845844757..9f4dffeb5 100644 --- a/modules/email/mu4e/autoload/mu-lock.el +++ b/modules/email/mu4e/autoload/mu-lock.el @@ -44,7 +44,7 @@ If STRICT only accept an unset lock file." "Check `+mu4e-lock-file', and if another process is responsible for it, abort starting. Else, write to this process' PID to the lock file" (unless (+mu4e-lock-available) - (shell-command (format "touch %s" +mu4e-lock-request-file)) + (call-process "touch" nil nil nil +mu4e-lock-request-file) (message "Lock file exists, requesting that it be given up") (sleep-for 0.1) (delete-file +mu4e-lock-request-file))