Skip to content

Commit

Permalink
Patch for versions after 2.1.2.04 (Tested on 2.1.2.10) (#84)
Browse files Browse the repository at this point in the history
Safety improvements:

- `sandbox_run.ps1`: Added a check to ensure the
  script runs only if the username is `WDAGUtilityAccount`.

- `Sandbox.wsb`: Disabled `ClipboardRedirection` to patch versions after
  2.1.2.04

- `Sandbox.wsb`: Enabled `vGPU` for better video performance.

Fixes #65.
  • Loading branch information
Voidless7125 authored Jan 18, 2025
1 parent 7248e29 commit bed61d7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
8 changes: 7 additions & 1 deletion runtime_directory/sandbox_run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,17 @@
# SPDX-License-Identifier: MPL-2.0+
# SPDX-FileCopyrightText: 2020-2022 gucci-on-fleek

# DON'T RUN THIS ON YOUR REGULAR SYSTEM! IT WILL CAUSE **IRREVERSIBLE** DAMAGE
# DON'T RUN THIS ON YOUR REGULAR SYSTEM! IT WILL CAUSE **IRREVERSIBLE** DAMAGE. (Well it's been fixed, but don't try.)

$ErrorActionPreference = "Stop"
Set-StrictMode -Version 3

# Check if running as WDAGUtilityAccount (Sandbox)
if ($env:USERNAME -ne "WDAGUtilityAccount") {
Write-Error "This script is intended to run only in Windows Sandbox. Exiting..."
exit 1
}

cd $PSScriptRoot

$lockdown_extract_dir = "C:\Windows\Temp\Lockdown"
Expand Down
2 changes: 2 additions & 0 deletions src/Sandbox-with-Microphone-Camera.wsb
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@
<AudioInput>Enable</AudioInput>
<VideoInput>Enable</VideoInput>
<ProtectedClient>Enable</ProtectedClient>
<ClipboardRedirection>False</ClipboardRedirection>
<vGPU>Enable</vGPU>
</Configuration>
2 changes: 2 additions & 0 deletions src/Sandbox.wsb
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@
<AudioInput>Disable</AudioInput>
<VideoInput>Disable</VideoInput>
<ProtectedClient>Enable</ProtectedClient>
<ClipboardRedirection>False</ClipboardRedirection>
<vGPU>Enable</vGPU>
</Configuration>

0 comments on commit bed61d7

Please sign in to comment.