BlueBubblesApp / bluebubbles-server

Server for forwarding iMessages to clients within the BlueBubbles App ecosystem
https://bluebubbles.app
Apache License 2.0
554 stars 47 forks source link

create option to auto lock mac after login startup #435

Closed cynical89 closed 4 months ago

cynical89 commented 2 years ago

No content

Issue created by BlueBubbles Bot in the BlueBubbles commnity on behalf of @tneot01 in #support.

zlshames commented 2 years ago

Possibly detect startup by checking current uptime

zlshames commented 2 years ago

https://www.macobserver.com/tips/quick-tip/mac-system-uptime-terminal/

zlshames commented 4 months ago

There isn't really a good way to Lock your mac. Currently, the app uses osascript (AppleScript), but that can occassionally fail. This SO article suggests that there is a way using pmset, however, requires some additional configuring: https://apple.stackexchange.com/a/159440

zlshames commented 4 months ago

Figured it out using a Python script. Closing. Will be included in the next release