Commit d340df1e authored by Albert Vaca Cintora's avatar Albert Vaca Cintora

Uuids were invalid dbus paths, modifying them to make dbus happy

parent e6dfaa59
......@@ -51,7 +51,10 @@ Daemon::Daemon(QObject *parent, const QList<QVariant>&)
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
......
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