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
The macOS lock-executable's source is currently not provided in the repository. Perhaps this could be added.
An alternative solution that doesn't require a binary would be to use child-process to execute the pmset displaysleepnow command. This will put the screen to sleep, which results in a lock if the user has set a log-in password and turned on "Require password after sleep or screen saver begins" in System Preferences, which should be the case anyway.
The macOS lock-executable's source is currently not provided in the repository. Perhaps this could be added.
An alternative solution that doesn't require a binary would be to use
child-process
to execute thepmset displaysleepnow
command. This will put the screen to sleep, which results in a lock if the user has set a log-in password and turned on "Require password after sleep or screen saver begins" in System Preferences, which should be the case anyway.Example code
The text was updated successfully, but these errors were encountered: