From c8e131e384398db4dd07b57373dbe7d9ce22fd7d Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 14 Sep 2017 16:27:48 +0200 Subject: [PATCH] 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. 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 ed6efcf..c87f191 100755 --- a/tools/mpi2hwdb.py +++ b/tools/mpi2hwdb.py @@ -65,6 +65,7 @@ def parse_mpi(mpi): # do we have an icon? try: icon = cp.get('Device', 'icon') + print ' ID_MEDIA_PLAYER_ICON_NAME=%s\n' % icon, # breaks media player detection : https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/657609 #print ' UDISKS_PRESENTATION_ICON_NAME=%s\n' % icon, except configparser.NoOptionError: -- 2.14.1