Skip to content

Commit

Permalink
macOS: restrict --allow-screencapture switch to macOS only since scre…
Browse files Browse the repository at this point in the history
…en protection doesn't work on Linux

In the code we also enable it for TC_WINDOWS but actually we don't use wxWidgets for Windows build.
  • Loading branch information
idrassi committed Sep 16, 2024
1 parent e0a46f6 commit 5c485e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Main/CommandLineInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ namespace VeraCrypt

parser.SetSwitchChars (L"-");

#if defined(TC_WINDOWS) || defined(TC_MACOSX)
parser.AddSwitch (L"", L"allow-screencapture", _("Allow window to be included in screenshots and screen captures (Windows/MacOS)"));
#endif
parser.AddOption (L"", L"auto-mount", _("Auto mount device-hosted/favorite volumes"));
parser.AddSwitch (L"", L"backup-headers", _("Backup volume headers"));
parser.AddSwitch (L"", L"background-task", _("Start Background Task"));
Expand Down

0 comments on commit 5c485e8

Please sign in to comment.