diff options
author | Robert Griebl <robert.griebl@qt.io> | 2022-03-21 15:04:14 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-03-21 16:40:25 +0000 |
commit | 6d88468132b566109835393191d6fe065ff1ba45 (patch) | |
tree | 856b5784c494f42a2ed46c44fea4f51100fc4f85 | |
parent | ea2b28dbffdb62bb76eeab3ff9f6ac205f20f39e (diff) | |
download | qtapplicationmanager-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.cpp | 2 |
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\", " |