decode the filename written to .desktop file

This commit is contained in:
Johnny Robeson 2016-06-16 23:04:24 -04:00
parent 52f2ab2547
commit 15c07613bf

View file

@ -183,7 +183,8 @@ class ThumbnailsPlugin(BeetsPlugin):
return return
artfile = os.path.split(album.artpath)[1] artfile = os.path.split(album.artpath)[1]
with open(outfilename, 'w') as f: with open(outfilename, 'w') as f:
f.write(b"[Desktop Entry]\nIcon=./{0}".format(artfile)) f.write('[Desktop Entry]\n')
f.write('Icon=./{0}'.format(artfile.decode('utf-8')))
f.close() f.close()
self._log.debug(u"Wrote file {0}", util.displayable_path(outfilename)) self._log.debug(u"Wrote file {0}", util.displayable_path(outfilename))