diff options
author | Bastien Nocera <hadess@hadess.net> | 2017-09-14 16:27:48 +0200 |
---|---|---|
committer | Martin Pitt <martin@piware.de> | 2017-09-15 14:19:50 +0200 |
commit | 6a5e0be3de5ee8591246f936be60499f1e2427fe (patch) | |
tree | 88098165d5b05324265235aa8b0d4c62f3af17da | |
parent | c77201d9ba927e5d6a1a9dc570306a8ead42fa06 (diff) |
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
-rwxr-xr-x | tools/mpi2hwdb.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/mpi2hwdb.py b/tools/mpi2hwdb.py index ed6efcf..aa4e228 100755 --- a/tools/mpi2hwdb.py +++ b/tools/mpi2hwdb.py @@ -65,8 +65,9 @@ def parse_mpi(mpi): # do we have an icon? try: icon = cp.get('Device', 'icon') + block += ' 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, + #block += ' UDISKS_PRESENTATION_ICON_NAME=%s\n' % icon except configparser.NoOptionError: pass |