lightdm sway login fix

This commit is contained in:
sulincix committed 2024-11-26 23:38:14 +00:00
1 parent 49b2dcd518
commit 5893fa2b59
2 files changed
+19 -4

No files matched your search

+14
View File
@@ -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
+5 -4
View File
@@ -8,10 +8,12 @@ email='bayramk@gmail.com'
maintainer='bk'
license=('GPLv3')
source=("https://salsa.debian.org/xfce-extras-team/lightdm/-/archive/debian/$version-1/lightdm-debian-$version-1.tar.gz"
"lightdm-session.sh"
"lightdm.initd")
depends=(libX11 pam libxklavier xorg-server libxcb glib libgcrypt libXdmcp xmodmap xrdb libXi)
makedepends=(gobject-introspection vala intltool yelp-tools)
md5sums=('2b845ca384f042f21b646a76c52345f0'
sha256sums=('10eec5e47c9546f934f568591140204db2ea2241f345685bb8eeb35da05c83e5'
'SKIP'
'SKIP')
group=(x11.misc)
uses=()
@@ -28,7 +30,7 @@ setup(){
--disable-tests \
--disable-gtk-doc \
--enable-yelp-tools \
--enable-qt5-base \
--disable-qt5-base \
--with-greeter-user=lightdm \
--with-greeter-session=lightdm-gtk-greeter
}
@@ -49,8 +51,7 @@ package(){
mkdir -p $DESTDIR/etc/init.d
install ../lightdm.initd $DESTDIR/etc/init.d/lightdm
# generate lightdm-session file
echo '#!/bin/sh' > $DESTDIR/usr/bin/lightdm-session
echo 'exec /etc/X11/xinit/Xsession $@' >> $DESTDIR/usr/bin/lightdm-session
install ../lightdm-session.sh $DESTDIR/usr/bin/lightdm-session
# fix pam config
sed -i "s/systemd/elogind/g" $DESTDIR/etc/pam.d/*
}