mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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.
This commit is contained in:
@ -22,7 +22,7 @@
|
|||||||
(insert-file-contents +mu4e-lock-file)
|
(insert-file-contents +mu4e-lock-file)
|
||||||
(buffer-string))))
|
(buffer-string))))
|
||||||
(process (process-attributes pid)))
|
(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)
|
(cons pid process)
|
||||||
(delete-file +mu4e-lock-file) nil))))
|
(delete-file +mu4e-lock-file) nil))))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user