mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-17 23:34:14 +01:00
Improve behavior in macOS sandbox
This commit is contained in:
@@ -108,6 +108,15 @@ export class DesktopCapturer {
|
||||
step: Step.NativeMacOS,
|
||||
stream: this.#getNativeMacOSStream(),
|
||||
};
|
||||
} else if (process.mas) {
|
||||
// MAS without native ScreenCaptureKit support: desktopCapturer.getSources()
|
||||
// is unavailable in the App Store sandbox. Gracefully report an error.
|
||||
this.#state = { step: Step.Error };
|
||||
options.onError(
|
||||
new Error(
|
||||
'Screen sharing requires macOS 15+ on the Mac App Store version'
|
||||
)
|
||||
);
|
||||
} else {
|
||||
this.#state = { step: Step.RequestingMedia, promise: this.#getStream() };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user