![]() Registered Member ![]()
|
Hello,
When i mount an iso file with mount (sudo/root) command or with udisksctl (as user), dolphin automatically show it in "place panel". But i can't figure out why it's called "Loop Device" (in french, because i'm french ![]() I setup all my other "devices" (mean partition) with an label and they get show with there label. Is this a bug ? So, i try my self to figure out why and i search trought solid-hardware and udiskctl command. Here is the output command from udiskctl and solid-hardware with an iso file mounted as loop device (as user) udisksctl info -b /dev/loop0
solid-hardware details /org/freedesktop/UDisks2/block_devices/loop0
And for compare here is the output for my root partition (aka "/") : udisksctl info -b /dev/sda3
solid-hardware details /org/freedesktop/UDisks2/block_devices/sda3
The only diff i seen between info about device loop and root partition is with solid-hardware command :
For now, i don't really know if this is a bug or a feature ![]() Any way, i really want to have my iso mounted show in dolphin with is "real" label, mean this :
By the way, the iso's mounted point is : /run/media/jerome/MARVELS_THOR_THE_DARK_WORLD_3D/, so this is extract from the code above. Should i filled a bug report ? How to get the "real" label display in dolphin's places panel ? EDIT : Kde 4.12.3 / gentoo linux Thanks ! Ps: sorry for my poor english. Jérôme. |
![]() Moderator ![]()
|
If I read the code correctly, the Places Panel always shows what is returned by Solid::Device::description(). It appears that this 'description' is equal to the label in the case of your 'root' drive, but not for the loop device.
I don't know if this is intended by Solid or if it is a bug. |
![]() Registered Member ![]()
|
Ok thanks,
So this is solid's fault. Found something in source code 'solid/solid/backends/udisks2/udiskdevice.cpp'
Why hard coding name "Loop device" ? |
![]() Registered Member ![]()
|
Ok, found a way but don't know if this is a right way to do
![]()
I recompile kde libs and it's working i get the label in the dolphin places ! Maybe i could propose this upstream ? |
![]() Moderator ![]()
|
Thanks for looking into it!
I don't know if there was a reason why the Solid people decided to return "Loop device" there. I think that you should discuss it with them and ask if this patch can be merged. |
![]() Registered Member ![]()
|
Hello,
Thanks, i just send an mail to Kde-hardware-devel, will see with them. |
Registered users: Bing [Bot], Google [Bot], lockheed