lightdm sway login fix
This commit is contained in:
1 parent
49b2dcd518
commit
5893fa2b59
2 files changed
+19
-4
No files matched your search
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
if [ ${XDG_SESSION_TYPE} == "wayland" ] ; then
|
||||
# Wait until the Xorg process for the user finishes
|
||||
while pgrep -u 0 Xorg > /dev/null; do
|
||||
sleep 0.1
|
||||
done
|
||||
if [ "${XDG_RUNTIME_DIR}" == "" ] ; then
|
||||
export XDG_RUNTIME_DIR=/tmp/runtime-$USER
|
||||
mkdir -p ${XDG_RUNTIME_DIR}
|
||||
fi
|
||||
exec env dbus-run-session $@
|
||||
else
|
||||
exec /etc/X11/xinit/Xsession $@
|
||||
fi
|
||||
Reference in new issue
Block a user