Skip to main content

Module session

Module session 

Source
Expand description

Who the app runs as and on what: the login’s account and host names, and whether a desktop session is there to show capture and call UI.

Apps use these only as hints (a display name to start from, a seed for a fallback id).

Functions§

has_desktop_session
host_name
This machine’s host name: $HOSTNAME, else the first line of /etc/hostname, when non-empty. None in a page.
user_name
The login name of the account running this process: $USER, else $USERNAME (Windows), when non-empty. None in a page.