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`
This commit is contained in:
Rhys Perry 2020-01-29 10:27:10 +00:00 committed by GitHub
parent aaa34e09da
commit 4762c1dafa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@
# Copyright (C) 2001-2005 Oswald Buddenhagen <ossi@kde.org>
# Note that the respective logout scripts are not sourced.
unset DISPLAY
case $SHELL in
*/bash)
[ -z "$BASH" ] && exec $SHELL $0 "$@"