From 5c485e80b6165da55932a9d08aa5732146b64db2 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Tue, 17 Sep 2024 00:12:28 +0200 Subject: 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. --- src/Main/CommandLineInterface.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Main') 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")); -- cgit v1.2.3