See patches.
Created attachment 134224 [details] [review] mpi2hwdb.py: Export the icon through hwdb to udev So that it can be consumed by user-space, such as gvfs' gphoto2 and mtp device monitors.
Created attachment 134225 [details] [review] mpi2hwdb.py: Force default icon to be multimedia-player Though most MTP devices available nowadays are phones, all those listed in this repository are media-players, unless an icon is assigned to them. To avoid gvfs from assigning a phone icon to a media player, add an icon to the udev definition of those devices. See https://bugzilla.gnome.org/show_bug.cgi?id=759042
Hello Bastien, Thanks for the patches, makes sense! I fixed the "Export icon.." patch to use `block +=` instead of the `print` statement (which isn't valid Python 3, and wouldn't change the actual file output). Applied: https://cgit.freedesktop.org/media-player-info/commit/?id=6a5e0be3 I fixed the second patch "Force default icon" to actually set `ID_MEDIA_PLAYER_ICON_NAME` (not `ID_MEDIA_PLAYER`), and applied: https://cgit.freedesktop.org/media-player-info/commit/?id=1a969ea I'll release version 23 now, so that this can get out to the world.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.