get_desktop_session_info
Identify the active Linux GUI session by retrieving its display protocol (Wayland/X11) and desktop environment from read-only environment variables, ensuring reliable context.
Instructions
Returns display protocol (Wayland/X11), desktop environment, and related environment config. Read-only from environment variables; never fails. Use to understand the GUI session the server runs under.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | ||
| display | Yes | ||
| runtime_dir | Yes | ||
| session_type | Yes | ||
| current_desktop | Yes | ||
| wayland_display | Yes |