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
I suspect it would instead be correct to filter the array for any entry which has kCGSSessionUserIDKey matching the UID and perhaps the GID.
For example, my own scutil output right now is as follows. (Sorry, I've grabbed this from my non-admin user patrick but the SessionInfo is in the same order for the admin user factotum. I also don't know if any of this is sensitive so I've redacted everything.)
The following code takes the final entry in the list of logged in users, not the actual logged in user:
asahi-installer/src/system.py
Lines 82 to 89 in 2f9b795
That means even if you are running the installer as an admin, you might still fail to run at the "are you an admin" check (
asahi-installer/src/main.py
Line 223 in 2f9b795
I suspect it would instead be correct to filter the array for any entry which has
kCGSSessionUserIDKey
matching theUID
and perhaps theGID
.For example, my own
scutil
output right now is as follows. (Sorry, I've grabbed this from my non-admin userpatrick
but the SessionInfo is in the same order for the admin userfactotum
. I also don't know if any of this is sensitive so I've redacted everything.)As things stand, the code believes
patrick
is logged in, regardless of who is actually logged in.The text was updated successfully, but these errors were encountered: