You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to be able to type something like
loginctl session-id
to get the session id of calling process.
That is: c1, c2, etc.. not what you get from getsid() system call.
The text was updated successfully, but these errors were encountered:
You can use $XDG_SESSION_ID for this, or when using C, you may use the sd_pid_get_session(0, &session) call, exported from libsystemd (it has a man page). The latter cannot be overriden by the user, the former of course can. Also note that most "loginctl" commands nowadays default to the calling user's session.
We need to be able to type something like
loginctl session-id
to get the session id of calling process.
That is: c1, c2, etc.. not what you get from getsid() system call.
The text was updated successfully, but these errors were encountered: