GdkX11.x11_set_sm_client_id
function x11_set_sm_client_id(sm_client_id: String): void { // Gjs wrapper for gdk_x11_set_sm_client_id() }
Sets the `SM_CLIENT_ID` property on the application’s leader window so that the window manager can save the application’s state using the X11R6 ICCCM session management protocol.
See the X Session Management Library documentation for more information on session management and the Inter-Client Communication Conventions Manual
Since 2.24
- sm_client_id
the client id assigned by the session manager when the connection was opened, or null to remove the property.