summaryrefslogtreecommitdiff
path: root/src/main-lib/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main-lib/main.cpp')
-rw-r--r--src/main-lib/main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main-lib/main.cpp b/src/main-lib/main.cpp
index 3b4faa0e..37f3682d 100644
--- a/src/main-lib/main.cpp
+++ b/src/main-lib/main.cpp
@@ -189,6 +189,7 @@ void Main::setup(const DefaultConfiguration *cfg, const QStringList &deploymentW
{
// basics that are needed in multiple setup functions below
m_noSecurity = cfg->noSecurity();
+ m_developmentMode = cfg->developmentMode();
m_builtinAppsManifestDirs = cfg->builtinAppsManifestDirs();
m_installedAppsManifestDir = cfg->installedAppsManifestDir();
@@ -501,11 +502,15 @@ void Main::setupInstaller(const QString &appImageMountDir, const QStringList &ca
m_applicationInstaller = ApplicationInstaller::createInstance(m_installationLocations,
m_installedAppsManifestDir,
appImageMountDir,
+ hardwareId(),
&error);
if (Q_UNLIKELY(!m_applicationInstaller))
throw Exception(Error::System, error);
- if (m_noSecurity) {
+
+ if (m_developmentMode)
m_applicationInstaller->setDevelopmentMode(true);
+
+ if (m_noSecurity) {
m_applicationInstaller->setAllowInstallationOfUnsignedPackages(true);
} else {
QList<QByteArray> caCertificateList;