Commit 9aeabb57 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Use lower-case UDID

Solid always returns them lower-case for some reason [1],
is it because of RFC 4122? :-)

[1] unmaintained/kdelibs@dd62877f
parent e319551d
Pipeline #111254 passed with stage
in 51 seconds
......@@ -77,7 +77,8 @@ const Solid::Device getDeviceFromBackingFile(const QString &backingFile)
const QList<Solid::Device> getStorageAccessFromDevice(const Solid::Device &device)
auto genericInterface =<Solid::GenericInterface>();
const QString uuid = genericInterface->property(QLatin1String("IdUUID")).value<QString>();
// Solid always returns UUID lower-case
const QString uuid = genericInterface->property(QLatin1String("IdUUID")).value<QString>().toLower();
auto query = QString("[ StorageVolume.uuid == '%1' AND IS StorageAccess ]").arg(uuid);
return Solid::Device::listFromQuery(query);
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