Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
spins:invis:15:testing
sddm
0001-Set-XAUTHLOCALHOSTNAME-in-sessions.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Set-XAUTHLOCALHOSTNAME-in-sessions.patch of Package sddm
From 259ec546a821f40536dc4aa2ff510a1e197b6e0d Mon Sep 17 00:00:00 2001 From: Fabian Vogt <fabian@ritter-vogt.de> Date: Sat, 24 Oct 2020 13:57:05 +0200 Subject: [PATCH] Set XAUTHLOCALHOSTNAME in sessions While FamilyWild avoids that hostname changes break xauth, this doesn't help with Xtrans (used for ICE). Xtrans always uses the current host name for setting $SESSION_MANAGER and for a successful connection this has to match the current hostname (or $XAUTHLOCALHOSTNAME, see p_xauth.diff in xtrans) on client connection attempts as well. By setting XAUTHLOCALHOSTNAME here, it's likely that it equals the hostname set by the session manager later (e.g. ksmserver). --- src/helper/Backend.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/helper/Backend.cpp b/src/helper/Backend.cpp index a053310..5e6941e 100644 --- a/src/helper/Backend.cpp +++ b/src/helper/Backend.cpp @@ -27,6 +27,7 @@ #include "UserSession.h" #include <QtCore/QProcessEnvironment> +#include <QtNetwork/QHostInfo> #include <pwd.h> @@ -68,6 +69,7 @@ namespace SDDM { env.insert(QStringLiteral("SHELL"), QString::fromLocal8Bit(pw->pw_shell)); env.insert(QStringLiteral("USER"), QString::fromLocal8Bit(pw->pw_name)); env.insert(QStringLiteral("LOGNAME"), QString::fromLocal8Bit(pw->pw_name)); + env.insert(QStringLiteral("XAUTHLOCALHOSTNAME"), QHostInfo::localHostName()); #if defined(Q_OS_FREEBSD) /* get additional environment variables via setclassenvironment(); this needs to be done here instead of in UserSession::setupChildProcess -- 2.25.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor