From 4c1105f968ee0b774f2f50b476047b096a464ed2 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Wed, 19 Jul 2023 16:12:25 -0400 Subject: [PATCH] Linux: Fix warning message about --allow-screencapture (#9638) * Fixes #9420 --- share/translations/keepassxc_en.ts | 8 ++++---- src/main.cpp | 7 ++----- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/share/translations/keepassxc_en.ts b/share/translations/keepassxc_en.ts index 176cfa671..c6246e38d 100644 --- a/share/translations/keepassxc_en.ts +++ b/share/translations/keepassxc_en.ts @@ -7850,10 +7850,6 @@ Kernel: %3 %4 read password of the database from stdin - - allow app screen recordering and screenshots - - Locked databases. @@ -7973,6 +7969,10 @@ This options is deprecated, use --set-key-file instead. KeePassXC is not running. No open database to lock + + allow screenshots and app recording (Windows/macOS) + + QtIOCompressor diff --git a/src/main.cpp b/src/main.cpp index d320f6590..0faa2c06b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -78,7 +78,7 @@ int main(int argc, char** argv) QCommandLineOption keyfileOption("keyfile", QObject::tr("key file of the database"), "keyfile"); QCommandLineOption pwstdinOption("pw-stdin", QObject::tr("read password of the database from stdin")); QCommandLineOption allowScreenCaptureOption("allow-screencapture", - QObject::tr("allow app screen recordering and screenshots")); + QObject::tr("allow screenshots and app recording (Windows/macOS)")); QCommandLineOption helpOption = parser.addHelpOption(); QCommandLineOption versionOption = parser.addVersionOption(); @@ -89,10 +89,7 @@ int main(int argc, char** argv) parser.addOption(keyfileOption); parser.addOption(pwstdinOption); parser.addOption(debugInfoOption); - - if (osUtils->canPreventScreenCapture()) { - parser.addOption(allowScreenCaptureOption); - } + parser.addOption(allowScreenCaptureOption); parser.process(app);