Details
Description
Registering an object to the dbus (QDBusConnection::registerObject) can lead to invalid dbus interface name when not passing interface name to the registerObject and QCoreApplication::instance()->applicationName() happens to contains a dash (my-app).
So, in practice via QDBusConnection::registerObject(const QString &path, QObject *object, RegisterOptions options = ExportAdaptors);
Dashes in dbus interface should be replaced by underscores in the dbusmisc.cpp at qDBusInterfaceFromMetaObject(const QMetaObject *mo)
See also:
https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names