Browse Source

Fix locking buffer when there is already an async process buffer

tags/v0.3.0
Damien Cassou 9 months ago
parent
commit
44c9b765b2
Signed by: Damien Cassou <damien@cassou.me> GPG Key ID: B68746238E59B548
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      desktop-environment.el

+ 2
- 1
desktop-environment.el View File

@@ -345,7 +345,8 @@ the screen."
"Lock the screen, preventing anyone without a password from using the system."
(interactive)
;; Run command asynchronously so that Emacs does not wait in the background.
(async-shell-command desktop-environment-screenlock-command))
(let ((async-shell-command-buffer 'new-buffer))
(async-shell-command desktop-environment-screenlock-command)))

;;; Minor mode

Loading…
Cancel
Save