From 61126c6bb48c96bb8f5865f3293b5b08fa121d2e Mon Sep 17 00:00:00 2001 From: TEC Date: Tue, 3 Aug 2021 02:37:25 +0800 Subject: [PATCH] fix(mu4e): improve mu-lock compatability with mac On mac process args aren't defined, but comm is. Since comm also works on Linux, we now check for that instead, accounting for a potential capitalisation difference. --- modules/email/mu4e/autoload/mu-lock.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/email/mu4e/autoload/mu-lock.el b/modules/email/mu4e/autoload/mu-lock.el index 7a0e6375b..2387f721f 100644 --- a/modules/email/mu4e/autoload/mu-lock.el +++ b/modules/email/mu4e/autoload/mu-lock.el @@ -22,7 +22,7 @@ (insert-file-contents +mu4e-lock-file) (buffer-string)))) (process (process-attributes pid))) - (if (and process (string-match-p "emacs" (alist-get 'args process))) + (if (and process (string-match-p "[Ee]macs" (alist-get 'comm process))) (cons pid process) (delete-file +mu4e-lock-file) nil))))