Fix browser not opening when clicking links

This commit is contained in:
Charlotte Van Petegem 2021-08-05 15:37:20 +02:00
parent 91165b8bba
commit ae785f2d35
No known key found for this signature in database
GPG key ID: 019E764B7184435A
3 changed files with 12 additions and 5 deletions

View file

@ -108,8 +108,15 @@
(when window-system (set-frame-font "Fira Code 9"))
(set-fontset-font t 'symbol "Noto Color Emoji")
(set-fontset-font t 'symbol "Symbola" nil 'append))
;; Make sure DISPLAY is set correctly in env.
(defun display-env-hack ()
"Hack DISPLAY env variable back into env."
(setenv "DISPLAY" ":0")
)
(if (daemonp)
(add-hook 'server-after-make-frame-hook #'font-settings)
(progn
(add-hook 'server-after-make-frame-hook #'font-settings)
(add-hook 'server-after-make-frame-hook #'display-env-hack))
(font-settings))
)