From 15c07613bf50c0764ad77aeb882fdb132feeee68 Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Thu, 16 Jun 2016 23:04:24 -0400 Subject: [PATCH] decode the filename written to .desktop file --- beetsplug/thumbnails.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beetsplug/thumbnails.py b/beetsplug/thumbnails.py index 0c1ec2b83..94ca70962 100644 --- a/beetsplug/thumbnails.py +++ b/beetsplug/thumbnails.py @@ -183,7 +183,8 @@ class ThumbnailsPlugin(BeetsPlugin): return artfile = os.path.split(album.artpath)[1] 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() self._log.debug(u"Wrote file {0}", util.displayable_path(outfilename))