Fix browser not opening when clicking links
This commit is contained in:
parent
91165b8bba
commit
ae785f2d35
3 changed files with 12 additions and 5 deletions
6
flake.lock
generated
6
flake.lock
generated
|
@ -42,11 +42,11 @@
|
|||
},
|
||||
"emacs-overlay": {
|
||||
"locked": {
|
||||
"lastModified": 1628128176,
|
||||
"narHash": "sha256-elL6sSscr6riZ7LbwNeMXaqUJHYamrsedDs/nbq8k7E=",
|
||||
"lastModified": 1628155445,
|
||||
"narHash": "sha256-he4MPagRglGy5iFtZ/HRpy26ArrM43p8K0LBCMCSmYQ=",
|
||||
"owner": "nix-community",
|
||||
"repo": "emacs-overlay",
|
||||
"rev": "8bceeeff7c7d00aee965f0ac623db2dba5b048f3",
|
||||
"rev": "c4d120d4776f0d17ee7128c4c3d551fab3bfc848",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -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))
|
||||
)
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
];
|
||||
|
||||
home-manager.users.charlotte = { pkgs, ... }: {
|
||||
home.packages = with pkgs; [ xdg-user-dirs ];
|
||||
home.packages = with pkgs; [ xdg-user-dirs xdg_utils ];
|
||||
xdg = {
|
||||
enable = true;
|
||||
# Some applications overwrite mimeapps.list with an identical file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue