Mountable devices support in KDE

David Faure faure at kde.org
Mon Sep 14 16:35:34 BST 2009


On Monday 14 September 2009, Rafał Miłecki wrote:
> 2009/9/8 Kevin Ottens <ervin at kde.org>:
> >> Is such a url trick acceptable to be commited to KDE (libkonq)?
> >
> > I've no say in that. More something to discuss with David.
> 
> Can sb else comment on this, please? David doesn't seem to read this ML.
 
Hey, how would I have posted 5889 emails to kde-core-devel since 1999 if I 
wasn't subscribed to it? :-)
(statistics from kde.markmail.org)

You just have to be a bit patient; business travel and heaps of KDE email 
everywhere don't make it easy to answer everything the same week.

Anyway, back to the topic.

IIRC Solid has a way to find the device from the device name like /dev/sdb1,
so instead of a kioslave-specific hack, how about using /dev/sdb1 as the path
for which to show the popupmenu? "All" we need to do is to show mount/unmount 
for such paths, and that seems easy to do: just modify 
KDesktopFileActions::builtinServices (in kio) so that it calls 
KMountPoint::currentMountPoints().findByDevice(_url.path()) when _url is a 
device path rather than a .desktop file. Something like the attached patch 
(untested).

Ah, but we can only recognize /dev/sdb1 if it's already mounted; otherwise
(if it's not mounted and it's not in fstab), how can we find out it's a 
mountable device? Via Solid maybe? Kevin? ;)

-- 
David Faure, faure at kde.org, sponsored by Nokia to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: deviceforurl.diff
Type: text/x-patch
Size: 3565 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090914/e418af1e/attachment.bin>


More information about the kde-core-devel mailing list