[Bug 289679] XDG_RUNTIME_DIR environment variable isn't set if user logins with ssh

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 18 Sep 2025 08:14:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289679

            Bug ID: 289679
           Summary: XDG_RUNTIME_DIR environment variable isn't set if user
                    logins with ssh
           Product: Base System
           Version: 16.0-CURRENT
          Hardware: Any
               URL: https://specifications.freedesktop.org/basedir-spec/la
                    test/
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: yasu@freebsd.org
                CC: manu@freebsd.org

According to XDG Base Directory Specification
(https://specifications.freedesktop.org/basedir-spec/latest/), environmet
variable XDG_RUNTIME_DIR defines the base directory relative to which
user-specific non-essential runtime files and other file objects (such as
sockets, named pipes, ...) should be stored.

When user logins from console, the environment variable is set to
"/var/run/xdg/(username)" and the directory is created at the same time if it
is first login to the system. But if user logins with ssh, then the environment
variable isn't set and the directory isn't created either even if it is first
login to the system.

Cc-ing the author of pam_xdg.

-- 
You are receiving this mail because:
You are the assignee for the bug.