VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2024-09-17 00:12:28 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2024-09-17 00:12:28 +0200
commit5c485e80b6165da55932a9d08aa5732146b64db2 (patch)
treeb09c538d2808e726f9a83cbbd3191a9d027786d5 /src
parente0a46f6b2b4bb5b5b77c22f1d2b12cbc3b7bf89c (diff)
downloadVeraCrypt-5c485e80b6165da55932a9d08aa5732146b64db2.tar.gz
VeraCrypt-5c485e80b6165da55932a9d08aa5732146b64db2.zip
macOS: restrict --allow-screencapture switch to macOS only since screen 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.
Diffstat (limited to 'src')
-rw-r--r--src/Main/CommandLineInterface.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Main/CommandLineInterface.cpp b/src/Main/CommandLineInterface.cpp
index e26a5ee3..d1ea9099 100644
--- a/src/Main/CommandLineInterface.cpp
+++ b/src/Main/CommandLineInterface.cpp
@@ -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"));