Bug 109260 - Choose device icons/ behaviour for USB devices?
Summary: Choose device icons/ behaviour for USB devices?
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Unmaintained
Component: media (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: Kevin Ottens
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-18 14:36 UTC by Simon St James
Modified: 2005-07-27 22:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon St James 2005-07-18 14:36:46 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    Debian testing/unstable Packages

Hi there,

I'm not sure whether this is possible (due to a lack of knowledge about how the media:// kio_slave works under the hood, and the information about plugged-in devices that is available to it), but I would like to see the pretty Compact Flash, SD Card, Camera etc icons put to good use :)

Whenever I plug in any of these things (CF/SD card, USB Pen, Camera etc), the same "USB Pen" icon always pops up, which is perhaps a little disconcerting to the user.  Now, I gather that most (properly designed!) USB devices have a uniqe identifier that states what kind of device it is, hinting that a given USB device can be "remembered" by Linux in between pluggings-in.  This being so, it would be nice if we could associate a device icon with each device, so that I can specify that from now on whenever I plug a CF card into my card reader, a CF card icon pops up (looking at the output of dmesg when a multi-card reader is plugged in, I'm guessing that it is possible to infer, based on prior experience, whether the item plugged in is a CF card, SD card etc).  It would also be handy if I could specify that a given device *not* show up, for reasons below.

Use cases:

- Joe plugs in his digital camera, and a USB Pen icon appears.  He right-clicks, selects "Add to my USB Devices" (since each USB device is, hopefully, uniquely identified), and chooses some options (what kind of device it is [camera, CF card etc] and hence which icon to display, and possibly which behaviours to enact when it is plugged in e.g. mount and open the "pictures" directory of the camera in Konqueror, etc) and possibly a friendly name like "My Digital Camera" so he can edit the settings without it being plugged-in.  Next time he plugs in his camera, the correct icon is displayed and the correct course of action is followed.
- Joe does the same with CF, SD and other types of devices with a multi-card reader/ hub.
- My mum (this one based on a true story!) plugs in her camera and *two* USB Pen icons are presented, only one of which is "correct".  Simon right-clicks on the dodgy one and ensure it never displays again, at the same time changing the icon to the "Camera" one. [According to the dmesg output, the camera in question does indeed register itself as two devices - possibly internal storage plus additional SD card, although only the latter appears to be mountable].


The presence of the CF, SD, Camera etc icons suggests that this may have been fixed, but if so I can't see how to use the system.  So apologies if this particular wish has been long-since granted!
Comment 1 Aaron J. Seigo 2005-07-19 01:36:32 UTC
this is really something that probably belongs first in the media:/ slave.
Comment 2 jcurry 2005-07-27 18:36:45 UTC
*** This bug has been confirmed by popular vote. ***
Comment 3 Aaron J. Seigo 2005-07-27 19:38:27 UTC
hooray for vote spamming! this time via slashdot! >:-(
Comment 4 Simon St James 2005-07-27 19:40:32 UTC
Yeah, sorry about that - I should have known better.  Won't happen again :(
Comment 5 Jakub Stachowski 2005-07-27 20:37:27 UTC
Cameras using usb-storage are now (current SVN when using HAL backend) recognized as such and get its own icon and mimetype.
Comment 6 Alejandro Lorenzo 2005-07-27 21:04:29 UTC
Well.... the truth is that via slashdot or whatever else... i had though of this...and as is a insteresting proposal, i am voting it.

Comment 7 Kevin Ottens 2005-07-27 22:59:26 UTC
Well the code is already there on our side in trunk for a little while now...
If HAL reports it the USB device as something special (SD, MMC, Portable
Audio Player, etc.) the appropriate icon is automatically assigned.

See, it was not needed to spam vote. =)