summaryrefslogtreecommitdiff
path: root/fbdaemon
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2012-07-30 09:38:44 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2012-07-30 09:38:44 (GMT)
commit739e27f6d8f8d54b101ced09fcf1a3e3c7c296bc (patch)
tree1fbfab867d5e5492bc53d698a2a949b71edfa06d /fbdaemon
parente845733963961c91cbbe26b370f9f728db0a1fc7 (diff)
downloadkolab-utils-739e27f6d8f8d54b101ced09fcf1a3e3c7c296bc.tar.gz
Convert the paths to absolute paths, in case we change the working directory.
Diffstat (limited to 'fbdaemon')
-rw-r--r--fbdaemon/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/fbdaemon/main.cpp b/fbdaemon/main.cpp
index db62688..0e18427 100644
--- a/fbdaemon/main.cpp
+++ b/fbdaemon/main.cpp
@@ -17,6 +17,7 @@
#include <QtCore/qcoreapplication.h>
#include <qsettings.h>
+#include <QDir>
#include <kcmdlineargs.h>
#include <kdebug.h>
#include "fbcoordinator.h"
@@ -45,7 +46,8 @@ int main(int argc, char *argv[])
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
- Settings::instance().setFile(args->getOption("config"));
+ //Make config file path absolute in case we change the directory
+ Settings::instance().setFile(QDir().absoluteFilePath(args->getOption("config")));
FBCoordinator coordinator(&app);
QObject::connect(&coordinator, SIGNAL(quit()), &app, SLOT(quit()));