From 25628993506cc6aeaf95739e64f84d0fddcf7a29 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 14 Sep 2017 16:29:12 +0200 Subject: [PATCH] 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 https://bugs.freedesktop.org/show_bug.cgi?id=102731 --- tools/mpi2hwdb.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/mpi2hwdb.py b/tools/mpi2hwdb.py index c87f191..981d7b5 100755 --- a/tools/mpi2hwdb.py +++ b/tools/mpi2hwdb.py @@ -69,6 +69,7 @@ def parse_mpi(mpi): # breaks media player detection : https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/657609 #print ' UDISKS_PRESENTATION_ICON_NAME=%s\n' % icon, except configparser.NoOptionError: + block += ' ID_MEDIA_PLAYER=multimedia-player\n' pass # empty line between blocks -- 2.14.1