refactor: X is supported by Cosmic

This commit is contained in:
Ashley Wulber 2023-01-25 11:07:56 -05:00
parent fa898f9228
commit 8d8ac26d7b
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
4 changed files with 7 additions and 26 deletions

View file

@ -1,7 +0,0 @@
[Desktop Entry]
Name=COSMIC
Comment=This session logs you into the COSMIC desktop with experimental X support
Exec=env COSMIC_X=1 /usr/bin/start-cosmic
TryExec=/usr/bin/start-cosmic
Type=Application
DesktopNames=pop:COSMIC

View file

@ -25,16 +25,10 @@ fi
export XDG_CURRENT_DESKTOP="${XDG_CURRENT_DESKTOP:=pop:COSMIC}"
export XDG_SESSION_TYPE="${XDG_SESSION_TYPE:=wayland}"
export XCURSOR_THEME="${XCURSOR_THEME:=Adwaita}"
export XCURSOR_THEME="${XCURSOR_THEME:=Pop}"
export _JAVA_AWT_WM_NONREPARENTING=1
# experimental X support in cosmic, but still prefer wayland
if [[ ! -z "${COSMIC_X}" ]]; then
export DISPLAY=:0
export GDK_BACKEND=wayland,x11
export MOZ_ENABLE_WAYLAND=1
export COSMIC_BACKEND=kms
fi
export GDK_BACKEND=wayland,x11
export MOZ_ENABLE_WAYLAND=1
# import environment variables from the login manager
systemctl --user import-environment XDG_SESSION_TYPE XDG_CURRENT_DESKTOP