| 25 | } |
| 26 | |
| 27 | QString dBusServiceNameForSession(QStringView id) |
| 28 | { |
| 29 | Q_ASSERT(id.startsWith(QLatin1Char{'{'})); |
| 30 | Q_ASSERT(id.endsWith(QLatin1Char{'}'})); |
| 31 | // We remove starting "{" and ending "}" from the string UUID representation |
| 32 | // as D-Bus apparently doesn't allow them in service names |
| 33 | return QLatin1String("org.kdevelop.kdevplatform-lock-") + id.sliced(1, id.size() - 2); |
| 34 | } |
| 35 | |
| 36 | /// Force-removes the lock-file. |
| 37 | void forceRemoveLockfile(const QString& lockFilename) |
no test coverage detected