1

I'm working on a cli password manager with C++ on macOS, and now I need to do something after the screen being locked, such as cleanup credential which displayed on screen.

Is there any ideal about that?

Thanks a lot!

102errors
  • 43
  • 3
  • 1
    Use these answers [How to programmatically prevent a Mac from going to sleep?](https://stackoverflow.com/questions/5596319/), adopt them to your needs instead of preventing the sleep. – 273K Feb 25 '21 at 06:29
  • screen lock and sleep are different features entirely – Jeremy Friesner Feb 25 '21 at 06:50

0 Answers0