Files
extra/xorg-xdm/Xsession-loginshell.patch
2025-06-22 20:39:04 -05:00

18 lines
430 B
Diff

diff --git a/config/Xsession.cpp b/config/Xsession.cpp
index 36ccbd0..0bf8a7c 100644
--- a/config/Xsession.cpp
+++ b/config/Xsession.cpp
@@ -53,11 +53,7 @@ startup=$HOME/.xsession
resources=$HOME/.Xresources
if [ -s "$startup" ]; then
- if [ -x "$startup" ]; then
- exec "$startup"
- else
- exec /bin/sh "$startup"
- fi
+ exec /bin/sh -ls -c "$startup"
else
if [ -r "$resources" ]; then
BINDIR/xrdb -load "$resources"