fixing cosmic not working in emacs for iced apps

This commit is contained in:
Chris Cochrun 2024-11-14 16:47:53 -06:00
parent 3cd0e52906
commit 68691811df
2 changed files with 11 additions and 6 deletions

View file

@ -214,7 +214,6 @@
(setenv "CLUTTER_BACKEND" "wayland")
(setenv "GDK_BACKEND" "wayland,x11")
(setenv "SDL_VIDEODRIVER" "wayland")
(setenv "WAYLAND_DISPLAY" "wayland-1")
(setenv "XDG_SESSION_TYPE" "wayland")
(defun chris/nix-reload ()
@ -225,9 +224,11 @@
(when (boundp 'native-comp-eln-load-path)
(add-to-list 'native-comp-eln-load-path (expand-file-name "native-lisp/" store-path)))))
(setenv "WAYLAND_DISPLAY" (if (string= (getenv "XDG_CURRENT_DESKTOP") "Hyprland")
(let ((desktop (getenv "XDG_CURRENT_DESKTOP")))
(setenv "WAYLAND_DISPLAY" (if (or (string= desktop "COSMIC")
(string= desktop "Hyprland"))
"wayland-1"
"wayland-0"))
"wayland-0")))
(executable-find "ssh")
(setq ispell-program-name "hunspell"