- session-infoprocedure
Returns a 10 element vector:
- SESSION-ID
- fixnum ; The security session identifier number.
- IS-ROOT
- boolean ; A root session?
- HAS-GRAPHICS
- boolean ; Has graphics access?
- HAS-TTY
- boolean ; Has tty?
- IS-REMOTE
- boolean ; Is a remote session?
- WAS-INITIALIZED
- boolean ; Initialized? (see note below)
- SHORT-USER-NAME
- string ; Short user name.
- USER-ID
- fixnum ; User identification number.
- CONSOLE-SET
- fixnum ; Console hardware number.
- LOGIN-COMPLETED
- boolean ; Login operations complete?
- IS-USER-ACTIVE
- boolean ; On console?
The OS API behind WAS-INITIALIZED is unsupported as of macOS 10.7 so to indicate the value is (void).
Raises an osstatus-condition for failure.