Fix #2894: disable tty init deferral in daemon
This commit is contained in:
parent
c4fc1587fe
commit
ffb37f8fed
1 changed files with 6 additions and 5 deletions
11
core/core.el
11
core/core.el
|
@ -310,11 +310,12 @@ users).")
|
||||||
;; HACK `tty-run-terminal-initialization' is *tremendously* slow for some
|
;; HACK `tty-run-terminal-initialization' is *tremendously* slow for some
|
||||||
;; reason. Disabling it completely could have many side-effects, so we
|
;; reason. Disabling it completely could have many side-effects, so we
|
||||||
;; defer it until later, at which time it (somehow) runs very quickly.
|
;; defer it until later, at which time it (somehow) runs very quickly.
|
||||||
(advice-add #'tty-run-terminal-initialization :override #'ignore)
|
(unless (daemonp)
|
||||||
(add-hook! 'window-setup-hook
|
(advice-add #'tty-run-terminal-initialization :override #'ignore)
|
||||||
(defun doom-init-tty-h ()
|
(add-hook! 'window-setup-hook
|
||||||
(advice-remove #'tty-run-terminal-initialization #'ignore)
|
(defun doom-init-tty-h ()
|
||||||
(tty-run-terminal-initialization (selected-frame) nil t)))
|
(advice-remove #'tty-run-terminal-initialization #'ignore)
|
||||||
|
(tty-run-terminal-initialization (selected-frame) nil t))))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue