I am trying to make sense of the sessionIsRemote bit in SessionAttributeBits. In our tests this bit is false for local sessions, as expected, but also for remote sessions initiated via VNC.
Note that we do not just share the screen of an already running session that was started locally. Instead, we start a new session for another user and therefore expect to fulfill the documented condition:
Another thing seems off in this context: When we query kCGSessionOnConsoleKey from the dictionary obtained via CGSessionCopyCurrentDictionary(), the value is true for the local session but false for the remote session. While this seems fair at first glance, I find it slightly confusing that who still reports a console session for both, local and remote users. How can we make sense of these results? Or is this a case of sharing a name but meaning different things?
Note that we do not just share the screen of an already running session that was started locally. Instead, we start a new session for another user and therefore expect to fulfill the documented condition:
What's the supported way to find out if a session is remote or local or even a mixture of both, given the fact that macOS allows sharing a local session remotely?A bit that indicates the session was initiated over the network.
Another thing seems off in this context: When we query kCGSessionOnConsoleKey from the dictionary obtained via CGSessionCopyCurrentDictionary(), the value is true for the local session but false for the remote session. While this seems fair at first glance, I find it slightly confusing that who still reports a console session for both, local and remote users. How can we make sense of these results? Or is this a case of sharing a name but meaning different things?