xauthority-hostname-updater(8)

xauthority-hostname-updater(26 April 2022) xauthority-hostname-updater(26 April 2022)
xauthority-hostname-updater

NAME

xauthority-hostname-updater - Daemon that keeps hostname in the Xauthority files up-to-date

SYNOPSIS


/usr/bin/xauthority-hostname-updater [OPTION...]

DESCRIPTION

xauthority-hostname-updater watches org.freedesktop.hostname1 for hostname changes, and update hostnames in Xauthority files for all active displays. When hostname is changed, xauthority-hostname-updater performs the following steps:

  • Determines display names: uses $DISPLAY as the local display name and filter the /proc/net/tcp records by PORT > 6000 and real UID to identify remote displays
  • Changes hostname in Xauthority files ($HOME/.Xauthority and $TMPDIR/xauth-$UID-_$DISPLAY) in records where:
  • family of the record matches with the FamilyLocal (means non-network connection, usually UDS)
  • hostname of the record matches with the previous hostname (the hostname before it was changed)
  • display name of the record is contained in the list of display names generated at the 1st step
Remembers the hostname and sleeps for the next signal from the org.freedesktop.hostname1

OPTIONS

-d
Run as daemon
-h
Show help and exit