Commit graph

9 commits

Author SHA1 Message Date
Johannes Millan
8d3b31f9d3 fix(electron): restore macOS lock screen by correcting osascript quoting
The osascript -e argument used nested unescaped double quotes, causing sh
to split it into multiple tokens so System Events never saw a valid
AppleScript. This has been broken since a 2022 prettier run stripped the
backslash escapes. Use a template literal so the inner quotes survive
formatting, and drop the CGSession path comment since it was removed in
Big Sur and only kept for pre-Big Sur fallback.

Closes #7217
2026-04-16 19:47:52 +02:00
Johannes Millan
2284892272 refactor(elctron): add typing wherever possible and simplify 2022-01-30 20:12:41 +01:00
Johannes Millan
49d76758d6 fix: code formatting and update t.const 2022-01-11 15:08:47 +01:00
gotlin
a443df0568 lock screen with macOS Big Sur, Catalina, Mojave (and anything from High Sierra 10.13.x onward) 2022-01-08 16:45:30 +01:00
Johannes Millan
696451057b refactor(electron): add missing return types 2021-07-22 16:07:24 +02:00
Johannes Millan
43022f8e83 refactor: format everything with prettier 2021-05-06 22:37:37 +02:00
Johannes Millan
d24b6f231d feat: enable strict mode for electron as well 2020-07-05 12:48:24 +02:00
Johannes Millan
fe89390d25 fix: lockscreen not working for plasma desktops #259 2019-11-29 19:04:24 +01:00
Johannes Millan
642a23666a feat(takeABreak): make lock screen feature work 2019-07-19 19:25:32 +02:00