summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@qt.io>2022-03-21 15:04:14 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-03-21 16:40:33 +0000
commit6a8133d41446c7ccbb7467e87190d2d68ae542c0 (patch)
treed4fb4827b07dd4423ec467978b32379482104802
parentb9cc18820fbdef2f0d935f16b86d125e596a0851 (diff)
downloadqtapplicationmanager-6a8133d41446c7ccbb7467e87190d2d68ae542c0.tar.gz
Fix the userIdSeparation check on startup
Change-Id: I7c109d378fd06bd9d3efdf8d495e2e4407ea1dd1 Reviewed-by: Bernd Weimer <bernd.weimer@qt.io> (cherry picked from commit 744ecc7fe73819a685531ed64e3af62f1816fc53) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/main-lib/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main-lib/main.cpp b/src/main-lib/main.cpp
index 4779ea6e..706dbd0f 100644
--- a/src/main-lib/main.cpp
+++ b/src/main-lib/main.cpp
@@ -492,7 +492,7 @@ void Main::setupInstaller(bool devMode, bool allowUnsigned, const QStringList &c
// we only output these deployment warnings, if we are on embedded, applicationUserIdSeparation
// is enabled and either...
- if (isRunningOnEmbedded() && userIdSeparation) {
+ if (isRunningOnEmbedded() && userIdSeparation && userIdSeparation(nullptr, nullptr, nullptr)) {
// ... the user forgot to call Sudo::forkServer() quite early in main()
if (Q_UNLIKELY(!SudoClient::instance())) {
qCWarning(LogDeployment) << "In order for the package-manager to support \"applicationUserIdSeparation\", "