[Panel-devel] kalming kickoff

Aaron J. Seigo aseigo at kde.org
Mon Nov 12 20:17:04 CET 2007


On Monday 12 November 2007, Kevin Ottens wrote:
> Le lundi 12 novembre 2007, Aaron J. Seigo a écrit :
> > depends on the state of the volume. if it is a hotpluggable/removable
> > device that is not currently accessible, i'm interested in the drive.
> > otherwise i was the volume info.
>
> Accessible (as in mounted) or not, you'll get the same information from the
> volume (except the mountpoint, but that's on StorageAccess anyway).

hm. ok, i'll see if i have more love with the volume then...

> > i can add it to
> > Kickoff for now, but maybe you could move it to Solid later, e.g. 4.1?
>
> Sure, we can evaluate that at a later point.

cool.

> > i don't want mount information. in the case that there is an unmounted
> > DVD drive, i don't want to show "THE_BOTHERSOME_MAN" (which is what my
> > menu currently says is in the drive ;) or "/media/cdrom0" (because it
> > isn't there).
>
> Actually you want to show "THE_BOTHERSOME_MAN" (I suspect it's a video DVD)
> because it's in the drive and available to the user (moreover you don't
> mount video DVD, so you would never show it to the user with the way you're
> proposing).

well.. that's just it. it isn't in the DVD drive. isAccessible() returns 
false. i haven't put another disk in the drive since i ejected it, and 
apparently HAL was too stupid to notice.

> > instead, i'd like to just say "DVD drive" on top, perhaps with the
> > eventually mountpoint ("/media/cdrom0") below it in the subtext.
>
> Mountpoints are known only when the device is mounted.

really? because i'm seeing it now: DVD is unmounted but it gives 
me /media/cdrom0 as the mount point. maybe it's just more HAL screw ups then?

> > so my question is how to find out what kind of device it is so i can
> > output "DVD drive" in user-friendly terms.
>
> Check for the OpticalDrive interface?

this is a generic issue, though. it's the same thing with other such removable 
devices which may not be optical in nature?

> > tangentially: right now kickoff attempts to setup (!) all drives it
> > lists.
>
> Urgh!!!

yeah. no kidding. =(

> > that was hidden amongst Robert's recent commits and that seems rather
> > unfriendly to the system. i'd like to move the setup attempt to
> > selection, so that the drive remains un-setup until the user clicks on it
> > ...
>
> Sure, really I'm restating it here but most of the things you list are
> problems already solved in KFilePlacesModel. If I were you I'd use that
> maybe using a proxy model to attach more information (like the subtext line
> you seem to want).

i agree; but unless someone steps up this won't happen from me until after 4.0 
since it would mean going through a bunch more work. i'm ok with a decent 
bodge for 4.0 with a better solution for 4.1.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071112/746030ae/attachment.pgp 


More information about the Panel-devel mailing list