Function: xdg-session-type

xdg-session-type is a byte-compiled function defined in xdg.el.gz.

Signature

(xdg-session-type)

Documentation

Return the value of $XDG_SESSION_TYPE.

Should be one of "unspecified", "tty", "x11", "wayland", or "mir".

This is not part of any official Freedesktop.org standard, but is documented in the man page pam_systemd.

Probably introduced at or before Emacs version 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/xdg.el.gz
;; Unofficial extension from systemd.

(defun xdg-session-type ()
  "Return the value of $XDG_SESSION_TYPE.
Should be one of \"unspecified\", \"tty\", \"x11\", \"wayland\",
or \"mir\".

This is not part of any official Freedesktop.org standard, but is
documented in the man page `pam_systemd'."
  (getenv "XDG_SESSION_TYPE"))