Commit 458c421f authored by Pierre Neidhardt's avatar Pierre Neidhardt

Run screenlock command asynchronously.

This prevents Emacs from waiting.
parent 564a0f4e
Pipeline #1729 passed with stage
in 32 seconds
......@@ -344,7 +344,8 @@ the screen."
(defun desktop-environment-lock-screen ()
"Lock the screen, preventing anyone without a password from using the system."
(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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment