From d340df1e6ee0880d94e71662f3c1b62f765265d2 Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Wed, 7 Aug 2013 11:45:24 +0200 Subject: [PATCH] Uuids were invalid dbus paths, modifying them to make dbus happy --- daemon/daemon.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/daemon/daemon.cpp b/daemon/daemon.cpp index 31308a2b8..a648711c8 100644 --- a/daemon/daemon.cpp +++ b/daemon/daemon.cpp @@ -51,7 +51,10 @@ Daemon::Daemon(QObject *parent, const QList&) KSharedConfigPtr config = KSharedConfig::openConfig("kdeconnectrc"); if (!config->group("myself").hasKey("id")) { - config->group("myself").writeEntry("id",QUuid::createUuid().toString()); + QString uid = QUuid::createUuid().toString(); + uid = uid.mid(1,uid.length()-2).replace("-","_"); + config->group("myself").writeEntry("id",uid); + qDebug() << uid; } //Debugging