diff options
author | Bastien Nocera <hadess@hadess.net> | 2017-09-14 16:29:12 +0200 |
---|---|---|
committer | Martin Pitt <martin@piware.de> | 2017-09-15 14:24:20 +0200 |
commit | 1a969ea4289d9ef6d2d778025f514226dfa5398a (patch) | |
tree | 39a2405c503e1a0442e535e7bbb7a057f2261a40 | |
parent | 6a5e0be3de5ee8591246f936be60499f1e2427fe (diff) |
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
-rwxr-xr-x | tools/mpi2hwdb.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/mpi2hwdb.py b/tools/mpi2hwdb.py index aa4e228..e0e3ad5 100755 --- a/tools/mpi2hwdb.py +++ b/tools/mpi2hwdb.py @@ -69,6 +69,8 @@ def parse_mpi(mpi): # breaks media player detection : https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/657609 #block += ' UDISKS_PRESENTATION_ICON_NAME=%s\n' % icon except configparser.NoOptionError: + # icon defaults to phone icon these days, so set it explicitly + block += ' ID_MEDIA_PLAYER_ICON_NAME=multimedia-player\n' pass # empty line between blocks |