Hello,
I was looking a way to change the name of the loop device found in
dolphin's place panel. I found it's solid udisks2 backend which return an
hard coded description in
"backends/udisks2/udisksdevice.cpp" line 254 :
if (isLoop())
return QObject::tr("Loop Device");
Is there any raison to hard coding this ?
I just try to change by this :
if (isLoop())
return volumeDescription();
And i get the label found by the udisksctl command line when i mounted an
iso file (udf) and also i get the label display in the dolphin's place
panel.
I don't really know if this is the right way to modify this.
I don't really know about c++ coding. See small patch
attached.
Sorry for my poor english, hope you understand me
This is solid in kde (libs) 4.12.3.
Thanks !
--- udisksdevice.cpp 2014-02-28 00:04:10.000000000 +0100
+++ udisksdevice.cpp.new 2014-03-27 16:53:18.865813003 +0100
@@ -251,7 +251,7 @@
return hintName;
if (isLoop())
- return QObject::tr("Loop Device");
+ return volumeDescription();
else if (isSwap())
return QObject::tr("Swap Space");
else if (queryDeviceInterface(Solid::DeviceInterface::StorageDrive))
_______________________________________________
Kde-hardware-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-hardware-devel