[UDisks Device] Show loop device with their backing file name and icon
ClosedPublic

Authored by broulik on Jan 15 2018, 5:55 PM.

Details

Summary

Instead of showing generic "Loop Device" for everything, use the backing file's file name and mime type icon.

Test Plan

Mounted a random iso file, showed up with file name and ISO icon in Dolphin sidebar.
Before


After

(This is also in preparation for getting rid of those useless "Loop Devices" in the first place)

Diff Detail

Repository
R245 Solid
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik created this revision.Jan 15 2018, 5:55 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptJan 15 2018, 5:55 PM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
broulik requested review of this revision.Jan 15 2018, 5:55 PM
apol added a subscriber: apol.Jan 15 2018, 6:02 PM
apol added inline comments.
src/solid/devices/backends/udisks2/udisksdevice.cpp
614 ↗(On Diff #25407)

return QStringLiteral("drive-harddisk");

bshah accepted this revision.Jan 23 2018, 3:24 PM
bshah added a subscriber: bshah.

, showed up with file name a

This revision is now accepted and ready to land.Jan 23 2018, 3:24 PM
This revision was automatically updated to reflect the committed changes.