Commit f821c53a authored by Aard's avatar Aard

Make ssu configuration permissions hack configurable at build time

parent 7d2ebc53
......@@ -12,4 +12,8 @@ MOBILITY += systeminfo
unix:target.path = $${PREFIX}/usr/lib
INSTALLS += target
ssuconfhack {
DEFINES += SSUCONFHACK
}
!include( ../buildpath.pri ) { error("Unable to find build path specification") }
......@@ -16,6 +16,7 @@ QTM_USE_NAMESPACE
Ssu::Ssu(): QObject(){
errorFlag = false;
#ifdef SSUCONFHACK
// dirty hack to make sure we can write to the configuration
// this is currently required since there's no global gconf,
// and we migth not yet have users on bootstrap
......@@ -26,6 +27,7 @@ Ssu::Ssu(): QObject(){
proc.start("/usr/bin/ssuconfperm");
proc.waitForFinished();
}
#endif
settings = new QSettings(SSU_CONFIGURATION, QSettings::IniFormat);
repoSettings = new QSettings(SSU_REPO_CONFIGURATION, QSettings::IniFormat);
......
......@@ -4,7 +4,12 @@ contains(QT_VERSION, ^4\\.[0-7]\\..*) {
TEMPLATE = subdirs
SUBDIRS = libssu
SUBDIRS += rndssucli rndregisterui ssuurlresolver ssuconfperm
SUBDIRS += rndssucli rndregisterui ssuurlresolver
ssuconfhack {
SUBDIRS += ssuconfperm
}
SUBDIRS += tests
rndssucli.depends = libssu
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment