mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
decode the filename written to .desktop file
This commit is contained in:
parent
52f2ab2547
commit
15c07613bf
1 changed files with 2 additions and 1 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue