diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-09-30 16:48:52 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-09-30 16:48:52 +0200 |
commit | 630923d0de4a5cab558531e943370f00a64b316d (patch) | |
tree | 144e29d4785de0bfd46c65cd7977bd59e8d5ab09 /distfoldd/main.cc | |
parent | 0a174260c5dd04d516da7a6021e681d49c312547 (diff) | |
download | distfold-630923d0de4a5cab558531e943370f00a64b316d.tar.gz distfold-630923d0de4a5cab558531e943370f00a64b316d.zip |
autogenerate keys and autostartup daemon
Diffstat (limited to 'distfoldd/main.cc')
-rw-r--r-- | distfoldd/main.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/distfoldd/main.cc b/distfoldd/main.cc index fbecf5a..48d52a5 100644 --- a/distfoldd/main.cc +++ b/distfoldd/main.cc @@ -3,6 +3,7 @@ #include <QtCore/QDebug> #include "distfolder.h" +#include "localkey.h" int main(int argc, char *argv[]) { @@ -10,7 +11,12 @@ int main(int argc, char *argv[]) a.setOrganizationName("distfold"); a.setOrganizationDomain("com.javispedro.distfold"); a.setApplicationName("distfoldd"); - a.setApplicationVersion("0.1"); + a.setApplicationVersion("0.2"); + + if (!LocalKey::setupLocalKey()) { + qWarning() << "Failed to setup local private key"; + return EXIT_FAILURE; + } QSettings settings; foreach (const QString& group, settings.childGroups()) { |