Skip to content

Commit 4bf7af8

Browse files
committed
fix(macOS): Open System Settings when asking for screen share permissions
1 parent 7b404ce commit 4bf7af8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/electron/macOSPermissions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { app, systemPreferences, dialog } from 'electron';
2-
import { askForScreenCaptureAccess } from 'node-mac-permissions';
1+
import { app, dialog, systemPreferences } from 'electron';
32
import fs from 'fs';
43
import macosVersion from 'macos-version';
4+
import { askForScreenCaptureAccess } from 'node-mac-permissions';
55
import path from 'path';
66

77
const debug = require('debug')('Franz:macOSPermissions');
@@ -69,7 +69,7 @@ export default async function (mainWindow) {
6969

7070
if (response === 0) {
7171
debug('Asking for access');
72-
askForScreenCaptureAccess();
72+
askForScreenCaptureAccess(true);
7373
createStatusFile();
7474
} else if (response === 1) {
7575
debug('Don\'t ask again');

0 commit comments

Comments
 (0)