Sandboxie/SandboxiePlus/SandMan/Troubleshooting/Sandboxing/webcam.js

29 lines
852 B
JavaScript
Raw Normal View History

2023-07-01 18:32:18 +01:00
/*
* group: sandboxing
* class: sandboxing
* _os_builds: 22000-99000
* name: Webcam or Sound does not work when sandboxed
* description: Description Text...
*
*/
let message = tr('To enable webcam support on Windows 11 the isolation level must be reduced. \n'+
2023-07-01 18:32:18 +01:00
'If you want to proceed please press NEXT and select a sandbox to modify. \n');
if(!sbie.isCertValid())
2023-07-04 20:14:14 +01:00
message += tr('\nPlease note that this required presets work only with a valid supporter certificate!');
2023-07-01 18:32:18 +01:00
wizard.showStatus(message, true);
let form = [
{type: 'box', id: 'box'}
];
let data = wizard.showForm(form, tr('Select which box to turn into a reduced isolation app compartment box.'));
2023-07-01 18:32:18 +01:00
let box = sbie.getBox(data['box']);
box.setIniValue('NoSecurityIsolation', 'y');
box.appendIniValue('Template', 'OpenCOM');
box.setIniValue('DropAdminRights', 'y');
box.applyChanges();