New devicenotifier moved to kdereview

Kevin Ottens ervin at kde.org
Tue Oct 6 22:38:42 CEST 2009


On Tuesday 6 October 2009 22:17:02 Aaron J. Seigo wrote:
> On October 6, 2009, Giulio Camuffo wrote:
> > in my opinion the applet should show all the devices, fixed or not, fstab
> >  or not. i tried with the solidengine, but it doesn't show the other
> >  devices too. i think anyway a better approach would be to add an action
> >  file for them, and add a property in the DeviceItem to set if they are
> >  (un)mountable
> 
> hm.. this not work so nicely ...
> 
> i can't find a way to combine StorageDrive and StorageVolume (so as to ask
> "what is not hotpluggable but is a file system?")

Yeah, this one mostly comes from the fact that the drive is usually parent of 
the volume... I've been pondering about providing a "parent" construct to 
predicates but had no use case for it, hence why it's not there.

OTOH in this particular case it'd be probably more elegant to simply propagate 
some of the drive properties to its volume children. That'd solve your issue I 
guess?

> and "[
> StorageAccess.accessible == true AND [ StorageVolume.usage == 'FileSystem'
>  OR StorageVolume.usage == 'Encrypted' ] ]" won't work in the case of the
>  volume becoming mounted later on.

That'd require a kind of "dynamic list" of devices based on a predicate. Would 
probably be overkill though, in particular if the proposal above would be 
enough for your case.

Solid is all about reporting enough information for apps to take decision, if 
at some place we miss some info and that prevent decision taking, I'm all fine 
plugging the holes.

Regards.
-- 
Kévin 'ervin' Ottens, http://ervin.ipsquad.net
"Ni le maître sans disciple, Ni le disciple sans maître,
Ne font reculer l'ignorance."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20091006/58e7955a/attachment-0001.sig 


More information about the Plasma-devel mailing list