Files
extra/xenocara-xinit/fix-hostname.patch
2025-06-22 20:39:04 -05:00

14 lines
459 B
Diff

diff --git a/app/xinit/startx.cpp b/app/xinit/startx.cpp
index 3ab9a26a..d26ab927 100644
--- a/startx.cpp
+++ b/startx.cpp
@@ -255,6 +255,8 @@ if [ x"$enable_xauth" = x1 ] ; then
Linux*)
if [ -z "`hostname --version 2>&1 | grep GNU`" ]; then
hostname=`hostname -f`
+ elif [ -z "`hostname --version 2>&1 | grep net-tools`" ]; then
+ hostname=`hostname -f`
else
hostname=`hostname`
fi