VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2024-09-18 15:08:31 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2024-09-18 15:08:31 +0200
commitaaf42a84a7e1475072c2d88b88b3a5557a61a746 (patch)
treed9b9d24d541aac74ef169fbc51482132125d989c /src/Main
parent380850787e59152100eed8c5c06d0e81a34e39e0 (diff)
downloadVeraCrypt-aaf42a84a7e1475072c2d88b88b3a5557a61a746.tar.gz
VeraCrypt-aaf42a84a7e1475072c2d88b88b3a5557a61a746.zip
Linux: fix assert by wxWidgets library included in Ubuntu.
Diffstat (limited to 'src/Main')
-rw-r--r--src/Main/CommandLineInterface.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Main/CommandLineInterface.cpp b/src/Main/CommandLineInterface.cpp
index d1ea9099..735cbeef 100644
--- a/src/Main/CommandLineInterface.cpp
+++ b/src/Main/CommandLineInterface.cpp
@@ -146,8 +146,11 @@ namespace VeraCrypt
ArgMountOptions = Preferences.DefaultMountOptions;
}
+#if defined(TC_WINDOWS) || defined(TC_MACOSX)
ArgAllowScreencapture = parser.Found (L"allow-screencapture");
-
+#else
+ ArgAllowScreencapture = true; // Protection against screenshots is supported only on Windows and MacOS
+#endif
// Commands
if (parser.Found (L"auto-mount", &str))
{