@livedesk/client 0.1.78 → 0.1.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -248,6 +248,10 @@ struct LiveDeskSCKMain {
248
248
  fputs("LiveDeskSCK requires macOS 12.3 or later.\n", stderr)
249
249
  exit(2)
250
250
  }
251
+ guard CGPreflightScreenCaptureAccess() else {
252
+ fputs("LiveDeskSCK screen recording permission is not granted.\n", stderr)
253
+ exit(10)
254
+ }
251
255
 
252
256
  let displayIndex = intArg("--display-index", default: 0)
253
257
  let width = intArg("--width", default: 960)
@@ -248,6 +248,10 @@ struct LiveDeskSCKMain {
248
248
  fputs("LiveDeskSCK requires macOS 12.3 or later.\n", stderr)
249
249
  exit(2)
250
250
  }
251
+ guard CGPreflightScreenCaptureAccess() else {
252
+ fputs("LiveDeskSCK screen recording permission is not granted.\n", stderr)
253
+ exit(10)
254
+ }
251
255
 
252
256
  let displayIndex = intArg("--display-index", default: 0)
253
257
  let width = intArg("--width", default: 960)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livedesk/client",
3
- "version": "0.1.78",
3
+ "version": "0.1.80",
4
4
  "description": "LiveDesk local remote client",
5
5
  "type": "module",
6
6
  "bin": {