After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 619583 - add audio player detection to gdu/udisks2 volume monitor
add audio player detection to gdu/udisks2 volume monitor
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: [obsolete] gdu volume monitor
git master
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2010-05-25 08:43 UTC by Jonathan Matthew
Modified: 2014-03-10 12:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (3.04 KB, patch)
2010-05-25 08:43 UTC, Jonathan Matthew
none Details | Review
patch (3.07 KB, patch)
2010-05-25 08:47 UTC, Jonathan Matthew
none Details | Review
udisks2: Add appropriate content type for media players (1.62 KB, patch)
2012-10-04 20:27 UTC, Martin Pitt
committed Details | Review

Description Jonathan Matthew 2010-05-25 08:43:05 UTC
Created attachment 161917 [details] [review]
patch

The gdu volume monitor currently doesn't identify audio player devices. It can use the ID_MEDIA_PLAYER udev property that media-player-info's udev rules set to do this.
Comment 1 Jonathan Matthew 2010-05-25 08:47:24 UTC
Created attachment 161918 [details] [review]
patch

fixed some missing #ifdefs around the added code
Comment 2 Bastien Nocera 2010-05-25 10:29:45 UTC
Looks good to me.
Comment 3 Martin Pitt 2012-10-04 20:27:25 UTC
Created attachment 225845 [details] [review]
udisks2: Add appropriate content type for media players

I just noticed that since we switched from the gdu to the udisks2 backend, media players were not recognized as such by gvfs/nautilus any more (for the gdu backend we had a kludge patch). As it's been decided that udisks2 itself should not know about media players (https://bugs.freedesktop.org/show_bug.cgi?id=24500), querying the udev property directly is the right thing.

Simple and tested patch attached.
Comment 4 David Zeuthen (not reading bugmail) 2012-10-04 20:37:22 UTC
Looks good to me and thanks for your attention to detail - it's appreciated! Please commit to master and cherry-pick to the gnome-3-6 branch!
Comment 5 Martin Pitt 2012-10-04 21:07:22 UTC
Comment on attachment 225845 [details] [review]
udisks2: Add appropriate content type for media players

Committed udisks2 patch to both master and gnome-3-6, thanks for the quick review!

I'll leave the bug open since technically I hijacked it a bit (it originally was against the gdu backend).
Comment 6 Martin Pitt 2012-10-05 10:59:49 UTC
This broke at least in Ubuntu for pretty much every release. I added a test case for this to the gvfs test suite now (see https://mail.gnome.org/archives/gvfs-list/2012-August/msg00000.html)
Comment 7 Martin Pitt 2014-03-10 12:10:02 UTC
At this point it is pretty much a wontfix for the gdu backend, and for udisks this was committed ages ago, so closing.