From aaf42a84a7e1475072c2d88b88b3a5557a61a746 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Wed, 18 Sep 2024 15:08:31 +0200 Subject: Linux: fix assert by wxWidgets library included in Ubuntu. --- src/Main/CommandLineInterface.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Main') 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)) { -- cgit v1.2.3