Browse Source

Run screenlock command asynchronously.

This prevents Emacs from waiting.
tags/v0.2.1
Pierre Neidhardt 6 months ago
parent
commit
458c421f3e
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      desktop-environment.el

+ 2
- 1
desktop-environment.el View File

@@ -344,7 +344,8 @@ the screen."
(defun desktop-environment-lock-screen ()
"Lock the screen, preventing anyone without a password from using the system."
(interactive)
(shell-command-to-string desktop-environment-screenlock-command))
;; Run command asynchronously so that Emacs does not wait in the background.
(async-shell-command desktop-environment-screenlock-command))

;;; Minor mode

Loading…
Cancel
Save