udev PortableMediaPlayer: read protocols from media-player-info
This is a second attempt at implementing PortableMediaPlayer for udev back-end using media-player-info [3], the first attempt was [2] by Alex Merry and this patch is heavily based on it. This patch relates to a discussion at [1] and is just a first step, the second would be to forward PMP interface from udev backed to udisks backed somehow (udisks...Device interface provides NativePath attribute that links to sysfs path that can help - on Linux) [1] http://mail.kde.org/pipermail/kde-hardware-devel/2011-October/001481.html [2] https://svn.reviewboard.kde.org/r/5853/ [3] http://www.freedesktop.org/wiki/Software/media-player-info Care is taken not to change existing behaviour - e.g. when udev env ID_MEDIA_PLAYER equals 1, behaviour is unchanged. PACKAGERS, solid udev backend now has following optional runtime-only dependency that provides udev rules and other info for identification of the portable media players: * media-player-info: for identifying USB storage devices and iPods Following packages also provide relevant udev rules, but we suggest not depending on them as they should by pulled by packages that actually use them (such as Amarok, transitively): * usbmuxd: for identifying iOS-based iPods * libmtp >= 1.0.4: for identifying MTP players [I will push similar change to frameworks branch, too] CCBUG: 253671 # does not solve it yet, but is a first step CCBUG: 269447 CCBUG: 269451 REVIEW: 103028 FIXED-IN: 4.8.4 DIGEST: groundwork for better portable media player detection CCMAIL: kde-packager@kde.org
parent
19c345e6
Please register or sign in to comment