I am running Arch Linux and have updated both sway and wlroots to their latest version (1.4 and 0.10 respectively).
The problem is I cannot start sway from my DM (ly) but I can start it if I switch to a tty and manually start sway.
I have attempted to debug the problem by appending -d > /tmp/sway.log to the end of the Exec entry in sway's desktop entry. After doing this and starting sway from my DM the file /tmp/sway.log _is_ created but it does not have any contents.
I have the same issue and there's only one related line in logs:
Jan 26 12:57:40 death-star ly[831]: 2020-01-26 12:57:40 - [sway/server.c:47] Unable to create bac
debug log:
2020-01-26 13:23:07 - [sway/main.c:152] Linux death-star 5.4.14-arch1-1 #1 SMP PREEMPT Thu, 23 Jan 2020 10:07:05 +0000 x86_64 GNU/Linux
2020-01-26 13:23:07 - [sway/main.c:168] Contents of /etc/os-release:
2020-01-26 13:23:07 - [sway/main.c:152] NAME="Arch Linux"
2020-01-26 13:23:07 - [sway/main.c:152] PRETTY_NAME="Arch Linux"
2020-01-26 13:23:07 - [sway/main.c:152] ID=arch
2020-01-26 13:23:07 - [sway/main.c:152] BUILD_ID=rolling
2020-01-26 13:23:07 - [sway/main.c:152] ANSI_COLOR="0;36"
2020-01-26 13:23:07 - [sway/main.c:152] HOME_URL="https://www.archlinux.org/"
2020-01-26 13:23:07 - [sway/main.c:152] DOCUMENTATION_URL="https://wiki.archlinux.org/"
2020-01-26 13:23:07 - [sway/main.c:152] SUPPORT_URL="https://bbs.archlinux.org/"
2020-01-26 13:23:07 - [sway/main.c:152] BUG_REPORT_URL="https://bugs.archlinux.org/"
2020-01-26 13:23:07 - [sway/main.c:152] LOGO=archlinux
2020-01-26 13:23:07 - [sway/main.c:140] LD_LIBRARY_PATH=(null)
2020-01-26 13:23:07 - [sway/main.c:140] LD_PRELOAD=(null)
2020-01-26 13:23:07 - [sway/main.c:140] PATH=/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/home/keepclean/bin:/home/keepclean/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
2020-01-26 13:23:07 - [sway/main.c:140] SWAYSOCK=(null)
2020-01-26 13:23:07 - [sway/server.c:40] Preparing Wayland server initialization
2020-01-26 13:23:07 - [backend/x11/backend.c:185] Failed to open X connection
2020-01-26 13:23:07 - [backend/noop/backend.c:51] Creating noop backend
2020-01-26 13:23:07 - [sway/server.c:47] Unable to create backend
Seems, errors that I've noticed in my logs are exactly like this report: https://github.com/swaywm/wlroots/issues/1930
... and unsetting DISPLAY in wsetup works as workaround
That issues says the fix is to unset the DISPLAY variable. How would I modify the wayland session entry to do that?
EDIT: I have tried prepending the sway command in the session entry with unset DISPLAY && but it does not seem to make a difference
I've simply changed /etc/ly/wsetup.sh by adding unset DISPLAY under zsh case:
~/code/src/github.com/cylgom/ly master
โฏ diff --context=2 res/wsetup.sh /etc/ly/wsetup.sh
*** res/wsetup.sh 2019-11-01 20:46:26.926424153 +0000
--- /etc/ly/wsetup.sh 2020-01-26 14:28:44.242274602 +0000
***************
*** 21,24 ****
--- 21,25 ----
;;
*/zsh)
+ unset DISPLAY
[ -z "$ZSH_NAME" ] && exec $SHELL $0 "$@"
[ -d /etc/zsh ] && zdir=/etc/zsh || zdir=/etc
You can copy wsetup script, change it and then use it in wayland_cmd in /etc/ly/config.ini
Ahh Ok, thanks. Suppose I should forward this issue onto ly
This is an issue with your DM. DISPLAY should be unset.
Most helpful comment
This is an issue with your DM.
DISPLAYshould be unset.