From 4762c1dafa6444c3c9230bd5706fda90cc7be09c Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Wed, 29 Jan 2020 10:27:10 +0000 Subject: [PATCH] Unset DISPLAY variable for wayland See #167 This is the fix that I currently use to get ly to work with sway. I am not sure if this is the proper way to implement it as I have only tested it on bash and zsh. Also to note is that it does not fix the problem of XDG_SESSION_TYPE being set to `tty` --- res/wsetup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/res/wsetup.sh b/res/wsetup.sh index 42be624..d8831fb 100755 --- a/res/wsetup.sh +++ b/res/wsetup.sh @@ -6,6 +6,7 @@ # Copyright (C) 2001-2005 Oswald Buddenhagen # Note that the respective logout scripts are not sourced. +unset DISPLAY case $SHELL in */bash) [ -z "$BASH" ] && exec $SHELL $0 "$@"