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:25 +0000
commit6d88468132b566109835393191d6fe065ff1ba45 (patch)
tree856b5784c494f42a2ed46c44fea4f51100fc4f85
parentea2b28dbffdb62bb76eeab3ff9f6ac205f20f39e (diff)
downloadqtapplicationmanager-6d88468132b566109835393191d6fe065ff1ba45.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 03d56747..f7cba36a 100644
--- a/src/main-lib/main.cpp
+++ b/src/main-lib/main.cpp
@@ -544,7 +544,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\", "