Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package lightdm for openSUSE:Factory checked in at 2026-09-23 14:33:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lightdm (Old) and /work/SRC/openSUSE:Factory/.lightdm.new.383539 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lightdm" Wed Sep 23 14:33:50 2026 rev:119 rq:1379361 version:1.33.1 Changes: -------- --- /work/SRC/openSUSE:Factory/lightdm/lightdm.changes 2026-04-18 21:30:14.206604227 +0200 +++ /work/SRC/openSUSE:Factory/.lightdm.new.383539/lightdm.changes 2026-09-23 14:35:03.748617691 +0200 @@ -1,0 +2,18 @@ +Wed Sep 16 20:30:41 UTC 2026 - Martin Pluskal <[email protected]> + +- Update to 1.33.1: + * Fix user switching (assume CanMultiSession after logind + dropped the property) + * Add a Qt6 client library (Qt5 remains available) + * Honor the VNC server command; try IPv6 first for VNC bind + * Do not reuse a local X server if the hostname has changed + * Allow Wayland sessions on seat0 without VTs + * Support PAM modules that change the home directory + * Do not disconnect signals on cancel before the session ends + * Suppress log errors for missing PAM modules + * Fix memory leaks in session_child_run +- Drop lightdm-1.32.0-qt6-library.patch (now upstream; also + unblocks GCC 16 / C++17, boo#1261691) +- Rebase remaining patches for 1.33.1 + +------------------------------------------------------------------- Old: ---- lightdm-1.32.0-qt6-library.patch lightdm-1.32.0.tar.xz New: ---- lightdm-1.33.1.tar.xz ----------(Old B)---------- Old: * Fix memory leaks in session_child_run - Drop lightdm-1.32.0-qt6-library.patch (now upstream; also unblocks GCC 16 / C++17, boo#1261691) ----------(Old E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lightdm.spec ++++++ --- /var/tmp/diff_new_pack.UmokVs/_old 2026-09-23 14:35:04.768660335 +0200 +++ /var/tmp/diff_new_pack.UmokVs/_new 2026-09-23 14:35:04.769660376 +0200 @@ -17,12 +17,6 @@ # -%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150300 -%define build_qt4 0 -%else -%define build_qt4 1 -%endif - %define ver_master 1.24 %define gobject_libname lightdm-gobject-1 %define gobject_lib lib%{gobject_libname}-0 @@ -33,12 +27,16 @@ %define qt6_libname lightdm-qt6-3 %define qt6_lib lib%{qt6_libname}-0 %define typelibname typelib-1_0-LightDM-1 +%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150300 +%define build_qt4 0 +%else +%define build_qt4 1 +%endif Name: lightdm -Version: 1.32.0 +Version: 1.33.1 Release: 0 Summary: Lightweight, Cross-desktop Display Manager License: GPL-3.0-or-later -Group: System/X11/Displaymanagers URL: https://freedesktop.org/wiki/Software/LightDM Source: https://github.com/CanonicalLtd/lightdm/releases/download/%{version}/%{name}-%{version}.tar.xz #Source1: https://github.com/CanonicalLtd/lightdm/releases/download/%{version}/%{name}-%{version}.tar.xz.asc @@ -63,18 +61,19 @@ Patch4: lightdm-use-run-dir.patch # PATCH-FIX-OPENSUSE ignore-known-symlink-sessions.patch boo#1030873 -- Ignore known synlink sessions. Patch5: lightdm-ignore-known-symlink-sessions.patch -# PATCH-FIX-UPSTREAM lightdm-1.32.0-qt6-library.patch -- Support Qt6 -Patch6: lightdm-1.32.0-qt6-library.patch BuildRequires: autoconf BuildRequires: automake +BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: intltool BuildRequires: libgcrypt-devel BuildRequires: libtool +BuildRequires: make BuildRequires: pam-devel BuildRequires: pkgconfig BuildRequires: sysuser-tools -BuildRequires: vala +# Shared default-displaymanager with gdm/sddm/xdm — do not convert one side to alts +BuildRequires: update-alternatives BuildRequires: xdm BuildRequires: yelp-tools BuildRequires: pkgconfig(Qt5Core) @@ -83,11 +82,6 @@ BuildRequires: pkgconfig(Qt6Core) BuildRequires: pkgconfig(Qt6DBus) BuildRequires: pkgconfig(Qt6Gui) -%if %{build_qt4} -BuildRequires: pkgconfig(QtCore) -BuildRequires: pkgconfig(QtDBus) -BuildRequires: pkgconfig(QtGui) -%endif BuildRequires: pkgconfig(gio-2.0) >= 2.26 BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(glib-2.0) >= 2.44 @@ -95,23 +89,29 @@ BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(gtk-doc) BuildRequires: pkgconfig(libxklavier) +# Keep vala: --pkgconfig maps it to stale pkgconfig(vapigen-0.46) +BuildRequires: vala BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xcb) BuildRequires: pkgconfig(xdmcp) -%if 0%{?suse_version} < 1600 -BuildRequires: gcc13-c++ -%endif -BuildRequires: update-alternatives -Requires(post): update-alternatives -Requires(postun): update-alternatives # 3rd party greeters don't have to follow # the same versioning of lightdm. Requires: lightdm-greeter # Uses pam configuration and relies on scripts provided by xdm. Requires: xdm -%sysusers_requires +Requires(post): update-alternatives +Requires(postun): update-alternatives # Migrate users from lxdm to lightdm - we only obsolete up to version 0.5. Obsoletes: lxdm < 0.5 +%sysusers_requires +%if %{build_qt4} +BuildRequires: pkgconfig(QtCore) +BuildRequires: pkgconfig(QtDBus) +BuildRequires: pkgconfig(QtGui) +%endif +%if 0%{?suse_version} < 1600 +BuildRequires: gcc13-c++ +%endif %if 0%{?suse_version} >= 1500 BuildRequires: pkgconfig(audit) %endif @@ -129,7 +129,6 @@ %package -n %{gobject_lib} Summary: LightDM GObject-based Client Library License: LGPL-2.0-only OR LGPL-3.0-only -Group: System/Libraries Recommends: accountsservice %description -n %{gobject_lib} @@ -139,7 +138,6 @@ %package gobject-devel Summary: Development Files for %{gobject_lib} License: LGPL-2.0-only OR LGPL-3.0-only -Group: Development/Libraries/C and C++ Requires: %{gobject_lib} = %{version} %description gobject-devel @@ -149,7 +147,6 @@ %package -n %{typelibname} Summary: GObject Introspection Bindings for the LightDM Client Library License: LGPL-2.0-only OR LGPL-3.0-only -Group: System/Libraries %description -n %{typelibname} This package contains the GObject Introspection bindings for the @@ -159,7 +156,6 @@ %package -n %{qt4_lib} Summary: LightDM Qt4-based Client Library License: LGPL-2.0-only OR LGPL-3.0-only -Group: System/Libraries %description -n %{qt4_lib} A Qt4-based library for LightDM clients to use to interface with @@ -168,7 +164,6 @@ %package qt-devel Summary: Development Files for %{qt4_lib} License: LGPL-2.0-only OR LGPL-3.0-only -Group: Development/Libraries/C and C++ Requires: %{qt4_lib} = %{version} %description qt-devel @@ -179,7 +174,6 @@ %package -n %{qt5_lib} Summary: LightDM Qt5-based Client Library License: LGPL-2.0-only OR LGPL-3.0-only -Group: System/Libraries %if !%{build_qt4} Provides: %{qt4_lib} = %{version} Obsoletes: %{qt4_lib} < %{version} @@ -192,7 +186,6 @@ %package qt5-devel Summary: Development Files for %{qt5_lib} License: LGPL-2.0-only OR LGPL-3.0-only -Group: Development/Libraries/C and C++ Requires: %{qt5_lib} = %{version} %if !%{build_qt4} Provides: %{name}-qt-devel = %{version} @@ -206,16 +199,14 @@ %package -n %{qt6_lib} Summary: LightDM Qt6-based Client Library License: LGPL-2.0-only OR LGPL-3.0-only -Group: System/Libraries %description -n %{qt6_lib} -A Qt5-based library for LightDM clients to use to interface with +A Qt6-based library for LightDM clients to use to interface with LightDM. %package qt6-devel Summary: Development Files for %{qt6_lib} License: LGPL-2.0-only OR LGPL-3.0-only -Group: Development/Libraries/C and C++ Requires: %{qt6_lib} = %{version} %description qt6-devel @@ -224,7 +215,7 @@ %package bash-completion Summary: Bash completion for lightdm -Group: System/Shells +License: GPL-3.0-or-later Requires: %{name} Requires: bash-completion Supplements: (%{name} and bash-completion) @@ -305,7 +296,7 @@ install -Dpm 0644 %{SOURCE7} %{buildroot}%{_sysconfdir}/lightdm/users.conf %if !%{defined _distconfdir} || 0%{?suse_version} < 1550 -sed -e 's-/usr/etc-%{_sysconfdir}-g' -i %{buildroot}%{_datadir}/lightdm/lightdm.conf.d/50-suse-defaults.conf +sed -e 's-%{_prefix}/etc-%{_sysconfdir}-g' -i %{buildroot}%{_datadir}/lightdm/lightdm.conf.d/50-suse-defaults.conf %endif install -Dm0644 %{SOURCE10} %{buildroot}%{_sysusersdir}/lightdm.conf @@ -317,13 +308,13 @@ %pre -f lightdm.pre %service_add_pre %{name}.service for i in pam.d/lightdm pam.d/lightdm-autologin pam.d/lightdm-greeter; do - test -f /etc/${i}.rpmsave && mv -v /etc/${i}.rpmsave /etc/${i}.rpmsave.old ||: + test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i}.rpmsave.old ||: done %posttrans # Migration to /usr/etc. for i in pam.d/lightdm pam.d/lightdm-autologin pam.d/lightdm-greeter; do - test -f /etc/${i}.rpmsave && mv -v /etc/${i}.rpmsave /etc/${i} ||: + test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i} ||: done %post @@ -352,21 +343,16 @@ --remove default-displaymanager %{_prefix}/lib/X11/displaymanagers/lightdm %post -n %{gobject_lib} -p /sbin/ldconfig - %postun -n %{gobject_lib} -p /sbin/ldconfig %if %{build_qt4} %post -n %{qt4_lib} -p /sbin/ldconfig - %postun -n %{qt4_lib} -p /sbin/ldconfig %endif %post -n %{qt5_lib} -p /sbin/ldconfig - %postun -n %{qt5_lib} -p /sbin/ldconfig - %post -n %{qt6_lib} -p /sbin/ldconfig - %postun -n %{qt6_lib} -p /sbin/ldconfig %files ++++++ lightdm-1.32.0.tar.xz -> lightdm-1.33.1.tar.xz ++++++ ++++ 75166 lines of diff (skipped) ++++++ lightdm-disable-utmp-handling.patch ++++++ --- /var/tmp/diff_new_pack.UmokVs/_old 2026-09-23 14:35:05.238679984 +0200 +++ /var/tmp/diff_new_pack.UmokVs/_new 2026-09-23 14:35:05.243680193 +0200 @@ -2,10 +2,10 @@ # Parent e4be60aa2d0234c4c8714033287e482e5673b18c disable utmp handling since this is handled in the Xstartup/Xreset scripts -Index: lightdm-1.30.0/src/session-child.c +Index: lightdm-1.33.1/src/session-child.c =================================================================== ---- lightdm-1.30.0.orig/src/session-child.c -+++ lightdm-1.30.0/src/session-child.c +--- lightdm-1.33.1.orig/src/session-child.c ++++ lightdm-1.33.1/src/session-child.c @@ -13,8 +13,10 @@ #include <grp.h> #include <glib.h> @@ -15,9 +15,9 @@ #include <utmpx.h> +#endif #include <sys/mman.h> - - #if HAVE_LIBAUDIT -@@ -192,6 +194,7 @@ read_xauth (void) + #if HAVE_SETUSERCONTEXT + #include <login_cap.h> +@@ -196,6 +198,7 @@ read_xauth (void) return x_authority_new (x_authority_family, x_authority_address, x_authority_address_length, x_authority_number, x_authority_name, x_authority_data, x_authority_data_length); } @@ -25,7 +25,7 @@ /* GNU provides this but we can't rely on that so let's make our own version */ static void updwtmpx (const gchar *wtmp_file, struct utmpx *ut) -@@ -213,6 +216,7 @@ updwtmpx (const gchar *wtmp_file, struct +@@ -217,6 +220,7 @@ updwtmpx (const gchar *wtmp_file, struct updwtmp (wtmp_file, &u); } @@ -33,7 +33,7 @@ #if HAVE_LIBAUDIT static void -@@ -344,6 +348,7 @@ session_child_run (int argc, char **argv +@@ -348,6 +352,7 @@ session_child_run (int argc, char **argv /* Write record to btmp database */ if (authentication_result == PAM_AUTH_ERR) { @@ -41,7 +41,7 @@ struct utmpx ut; struct timeval tv; -@@ -364,6 +369,7 @@ session_child_run (int argc, char **argv +@@ -368,6 +373,7 @@ session_child_run (int argc, char **argv ut.ut_tv.tv_usec = tv.tv_usec; updwtmpx ("/var/log/btmp", &ut); @@ -49,7 +49,7 @@ #if HAVE_LIBAUDIT audit_event (AUDIT_USER_LOGIN, username, -1, remote_host_name, tty, FALSE); -@@ -684,6 +690,7 @@ session_child_run (int argc, char **argv +@@ -733,6 +739,7 @@ session_child_run (int argc, char **argv /* Wait for the command to complete (blocks) */ if (child_pid > 0) { @@ -57,7 +57,7 @@ /* Log to utmp */ if (g_strcmp0 (pam_getenv (pam_handle, "XDG_SESSION_CLASS"), "greeter") != 0) { -@@ -711,11 +718,11 @@ session_child_run (int argc, char **argv +@@ -760,11 +767,11 @@ session_child_run (int argc, char **argv g_printerr ("Failed to write utmpx: %s\n", strerror (errno)); endutxent (); updwtmpx ("/var/log/wtmp", &ut); @@ -70,7 +70,7 @@ int child_status; waitpid (child_pid, &child_status, 0); -@@ -725,6 +732,7 @@ session_child_run (int argc, char **argv +@@ -774,6 +781,7 @@ session_child_run (int argc, char **argv else return_code = EXIT_FAILURE; @@ -78,7 +78,7 @@ /* Log to utmp */ if (g_strcmp0 (pam_getenv (pam_handle, "XDG_SESSION_CLASS"), "greeter") != 0) { -@@ -757,6 +765,7 @@ session_child_run (int argc, char **argv +@@ -806,6 +814,7 @@ session_child_run (int argc, char **argv audit_event (AUDIT_USER_LOGOUT, username, uid, remote_host_name, tty, TRUE); #endif } ++++++ lightdm-ignore-known-symlink-sessions.patch ++++++ --- /var/tmp/diff_new_pack.UmokVs/_old 2026-09-23 14:35:05.288682074 +0200 +++ /var/tmp/diff_new_pack.UmokVs/_new 2026-09-23 14:35:05.294682325 +0200 @@ -10,10 +10,10 @@ are not available anymore, the target of those needs to be passed as session name instead. -Index: lightdm-1.30.0/liblightdm-gobject/session.c +Index: lightdm-1.33.1/liblightdm-gobject/session.c =================================================================== ---- lightdm-1.30.0.orig/liblightdm-gobject/session.c -+++ lightdm-1.30.0/liblightdm-gobject/session.c +--- lightdm-1.33.1.orig/liblightdm-gobject/session.c ++++ lightdm-1.33.1/liblightdm-gobject/session.c @@ -8,6 +8,10 @@ * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ @@ -25,7 +25,7 @@ #include <string.h> #include <gio/gdesktopappinfo.h> -@@ -137,6 +141,23 @@ load_sessions_dir (GList *sessions, cons +@@ -135,6 +139,23 @@ load_sessions_dir (GList *sessions, cons g_autofree gchar *path = g_build_filename (sessions_dir, filename, NULL); @@ -49,10 +49,10 @@ g_autoptr(GKeyFile) key_file = g_key_file_new (); g_autoptr(GError) e = NULL; gboolean result = g_key_file_load_from_file (key_file, path, G_KEY_FILE_NONE, &e); -Index: lightdm-1.30.0/src/seat.c +Index: lightdm-1.33.1/src/seat.c =================================================================== ---- lightdm-1.30.0.orig/src/seat.c -+++ lightdm-1.30.0/src/seat.c +--- lightdm-1.33.1.orig/src/seat.c ++++ lightdm-1.33.1/src/seat.c @@ -9,6 +9,8 @@ * license. */ @@ -62,7 +62,7 @@ #include <stdlib.h> #include <string.h> #include <sys/wait.h> -@@ -552,11 +554,87 @@ find_resettable_greeter (Seat *seat) +@@ -570,11 +572,87 @@ find_resettable_greeter (Seat *seat) return NULL; } ++++++ lightdm-sysconfig-support.patch ++++++ --- /var/tmp/diff_new_pack.UmokVs/_old 2026-09-23 14:35:05.329683788 +0200 +++ /var/tmp/diff_new_pack.UmokVs/_new 2026-09-23 14:35:05.336684081 +0200 @@ -1,7 +1,7 @@ -Index: lightdm-1.30.0/data/lightdm.conf +Index: lightdm-1.33.1/data/lightdm.conf =================================================================== ---- lightdm-1.30.0.orig/data/lightdm.conf -+++ lightdm-1.30.0/data/lightdm.conf +--- lightdm-1.33.1.orig/data/lightdm.conf ++++ lightdm-1.33.1/data/lightdm.conf @@ -1,3 +1,26 @@ +# NOTE: settings under /etc/sysconfig take precendence over those below, +# specifically: @@ -29,10 +29,10 @@ # # General configuration # -Index: lightdm-1.30.0/src/lightdm.c +Index: lightdm-1.33.1/src/lightdm.c =================================================================== ---- lightdm-1.30.0.orig/src/lightdm.c -+++ lightdm-1.30.0/src/lightdm.c +--- lightdm-1.33.1.orig/src/lightdm.c ++++ lightdm-1.33.1/src/lightdm.c @@ -22,6 +22,7 @@ #include <errno.h> @@ -41,7 +41,7 @@ #include "display-manager.h" #include "display-manager-service.h" #include "xdmcp-server.h" -@@ -52,6 +53,85 @@ static gint exit_code = EXIT_SUCCESS; +@@ -53,6 +54,85 @@ static gint exit_code = EXIT_SUCCESS; static gboolean update_login1_seat (Login1Seat *login1_seat); @@ -127,7 +127,7 @@ static void log_cb (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer data) { -@@ -835,6 +915,9 @@ main (int argc, char **argv) +@@ -852,6 +932,9 @@ main (int argc, char **argv) if (g_mkdir_with_parents (cache_dir_path, S_IRWXU | S_IXGRP | S_IXOTH) < 0) g_warning ("Failed to make cache directory %s: %s", cache_dir_path, strerror (errno)); @@ -137,10 +137,10 @@ log_init (); /* Show queued messages once logging is complete */ -Index: lightdm-1.30.0/src/Makefile.am +Index: lightdm-1.33.1/src/Makefile.am =================================================================== ---- lightdm-1.30.0.orig/src/Makefile.am -+++ lightdm-1.30.0/src/Makefile.am +--- lightdm-1.33.1.orig/src/Makefile.am ++++ lightdm-1.33.1/src/Makefile.am @@ -70,7 +70,9 @@ lightdm_SOURCES = \ xdmcp-server.c \ xdmcp-server.h \ @@ -152,10 +152,10 @@ lightdm_CFLAGS = \ $(WARN_CFLAGS) \ -Index: lightdm-1.30.0/src/opensuse-sysconfig.c +Index: lightdm-1.33.1/src/opensuse-sysconfig.c =================================================================== --- /dev/null -+++ lightdm-1.30.0/src/opensuse-sysconfig.c ++++ lightdm-1.33.1/src/opensuse-sysconfig.c @@ -0,0 +1,380 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- + * @@ -537,10 +537,10 @@ + return boolean_value; +} + -Index: lightdm-1.30.0/src/opensuse-sysconfig.h +Index: lightdm-1.33.1/src/opensuse-sysconfig.h =================================================================== --- /dev/null -+++ lightdm-1.30.0/src/opensuse-sysconfig.h ++++ lightdm-1.33.1/src/opensuse-sysconfig.h @@ -0,0 +1,50 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- + * @@ -592,11 +592,11 @@ +G_END_DECLS + +#endif /* __OPENSUSE_SYSCONFIG_H */ -Index: lightdm-1.30.0/src/seat.c +Index: lightdm-1.33.1/src/seat.c =================================================================== ---- lightdm-1.30.0.orig/src/seat.c -+++ lightdm-1.30.0/src/seat.c -@@ -1271,9 +1271,18 @@ create_greeter_session (Seat *seat) +--- lightdm-1.33.1.orig/src/seat.c ++++ lightdm-1.33.1/src/seat.c +@@ -1286,9 +1286,18 @@ create_greeter_session (Seat *seat) } session_set_argv (SESSION (greeter_session), argv); @@ -618,7 +618,7 @@ g_signal_connect (greeter, GREETER_SIGNAL_CREATE_SESSION, G_CALLBACK (greeter_create_session_cb), seat); g_signal_connect (greeter, GREETER_SIGNAL_START_SESSION, G_CALLBACK (greeter_start_session_cb), seat); -@@ -1518,7 +1527,10 @@ seat_switch_to_user (Seat *seat, const g +@@ -1546,7 +1555,10 @@ seat_switch_to_user (Seat *seat, const g /* Attempt to authenticate them */ session = create_user_session (seat, username, FALSE); g_signal_connect (session, SESSION_SIGNAL_AUTHENTICATION_COMPLETE, G_CALLBACK (switch_authentication_complete_cb), seat); ++++++ lightdm-use-run-dir.patch ++++++ --- /var/tmp/diff_new_pack.UmokVs/_old 2026-09-23 14:35:05.358685001 +0200 +++ /var/tmp/diff_new_pack.UmokVs/_new 2026-09-23 14:35:05.362685168 +0200 @@ -2,11 +2,11 @@ # Parent 286765d233568af58a49fd0b2c79b63fcabaf9f4 Use /run instead of localstatedir/run/lightdm -Index: lightdm-1.32.0/src/Makefile.am +Index: lightdm-1.33.1/src/Makefile.am =================================================================== ---- lightdm-1.32.0.orig/src/Makefile.am -+++ lightdm-1.32.0/src/Makefile.am -@@ -82,7 +82,7 @@ lightdm_CFLAGS = \ +--- lightdm-1.33.1.orig/src/Makefile.am ++++ lightdm-1.33.1/src/Makefile.am +@@ -81,7 +81,7 @@ lightdm_CFLAGS = \ -DSBIN_DIR=\"$(sbindir)\" \ -DUSERS_DIR=\"$(localstatedir)/lib/lightdm-data\" \ -DLOG_DIR=\"$(localstatedir)/log/lightdm\" \ ++++++ lightdm-xauthlocalhostname-support.patch ++++++ --- /var/tmp/diff_new_pack.UmokVs/_old 2026-09-23 14:35:05.385686130 +0200 +++ /var/tmp/diff_new_pack.UmokVs/_new 2026-09-23 14:35:05.395686548 +0200 @@ -1,11 +1,11 @@ Set XAUTHLOCALHOSTNAME to the hostname for local logins to avoid issues in the session in case the hostname changes. -Index: lightdm-1.30.0/src/seat-local.c +Index: lightdm-1.33.1/src/seat-local.c =================================================================== ---- lightdm-1.30.0.orig/src/seat-local.c -+++ lightdm-1.30.0/src/seat-local.c -@@ -289,6 +289,7 @@ seat_local_run_script (Seat *seat, Displ +--- lightdm-1.33.1.orig/src/seat-local.c ++++ lightdm-1.33.1/src/seat-local.c +@@ -299,6 +299,7 @@ seat_local_run_script (Seat *seat, Displ const gchar *path = x_server_local_get_authority_file_path (X_SERVER_LOCAL (display_server)); process_set_env (script, "DISPLAY", x_server_get_address (X_SERVER (display_server))); process_set_env (script, "XAUTHORITY", path); @@ -13,25 +13,10 @@ } SEAT_CLASS (seat_local_parent_class)->run_script (seat, display_server, script); -Index: lightdm-1.30.0/src/x-authority.c +Index: lightdm-1.33.1/src/x-server.c =================================================================== ---- lightdm-1.30.0.orig/src/x-authority.c -+++ lightdm-1.30.0/src/x-authority.c -@@ -68,8 +68,8 @@ x_authority_new_cookie (guint16 family, - XAuthority * - x_authority_new_local_cookie (const gchar *number) - { -- gchar hostname[1024]; -- gethostname (hostname, 1024); -+ const gchar *hostname; -+ hostname = g_get_host_name (); - return x_authority_new_cookie (XAUTH_FAMILY_LOCAL, (guint8 *) hostname, strlen (hostname), number); - } - -Index: lightdm-1.30.0/src/x-server.c -=================================================================== ---- lightdm-1.30.0.orig/src/x-server.c -+++ lightdm-1.30.0/src/x-server.c +--- lightdm-1.33.1.orig/src/x-server.c ++++ lightdm-1.33.1/src/x-server.c @@ -15,6 +15,7 @@ #include "x-server.h" @@ -40,8 +25,17 @@ typedef struct { -@@ -161,6 +162,8 @@ x_server_connect_session (DisplayServer - else +@@ -105,7 +106,7 @@ x_server_set_local_authority (XServer *s + char display_number[12]; + g_snprintf(display_number, sizeof(display_number), "%d", x_server_get_display_number (server)); + +- gethostname (priv->local_hostname, 1024); ++ g_strlcpy (priv->local_hostname, g_get_host_name (), sizeof (priv->local_hostname)); + priv->authority = x_authority_new_cookie (XAUTH_FAMILY_LOCAL, (guint8 *) priv->local_hostname, strlen (priv->local_hostname), display_number); + } + +@@ -237,6 +238,8 @@ error: + #endif l_debug (session, "Not setting XDG_VTNR"); + if (IS_X_SERVER_LOCAL (display_server))
