better permissions mac

This commit is contained in:
test
2026-06-04 20:41:10 -05:00
parent 4e267f4d36
commit a35de5d129
15 changed files with 256 additions and 10 deletions
+4 -1
View File
@@ -647,7 +647,10 @@ func runSession(ctx context.Context, cancel context.CancelFunc, conn *websocket.
hello.GPU = hw.GPU
hello.RAM = hw.RAM
hello.BatteryPercent = hw.BatteryPercent
hello.BatteryCharging = hw.BatteryCharging
if hw.BatteryPercent != nil {
charging := hw.BatteryCharging
hello.BatteryCharging = &charging
}
hello.IsAdmin = sysinfo.IsAdmin()
hello.Elevation = sysinfo.Elevation()
hello.Permissions = sysinfo.DarwinPermissions()