File imagewriter-qt6-dbuspath.patch of Package imagewriter
diff --git a/PlatformUdisks2.cpp b/PlatformUdisks2.cpp
index 6a31628..3c78a3f 100644
--- a/PlatformUdisks2.cpp
+++ b/PlatformUdisks2.cpp
@@ -113,7 +113,9 @@ PlatformUdisks2::getBlockDeviceProperties(const QString &blockDevice)
QDBusObjectPath objectPath = qvariant_cast<QDBusObjectPath>(remoteApp.property("Drive"));
QString path = objectPath.path();
properties.insert("drivePath", path);
- properties.insert("path", QString(remoteApp.property("Device").toByteArray()));
+ QString device = remoteApp.property("Device").toByteArray();
+ device.remove('\0');
+ properties.insert("path", device);
properties.insert("size", remoteApp.property("Size"));
return properties;
}