X-Git-Url: https://git.phdru.name/?p=xsetbg.git;a=blobdiff_plain;f=rescan_fs.py;fp=rescan_fs.py;h=9688de941cbb4831d35947261f03b238783800ea;hp=346f92b28f387c3434731ec9d0e19e4949955aa2;hb=8c29b392cb63442b52c6252c3a8418ff1677ffb3;hpb=02a5420742ce42ca4a602a4550b9838fec37df7b diff --git a/rescan_fs.py b/rescan_fs.py index 346f92b..9688de9 100755 --- a/rescan_fs.py +++ b/rescan_fs.py @@ -52,7 +52,7 @@ NULL = open(os.devnull, 'w') def is_image(full_path): # Run `identify` from ImageMagic; convert retcode to bool - return not subprocess.call(['identify', full_path], + return not subprocess.call(['identify', full_path.encode(fs_encoding)], stdout=NULL, stderr=subprocess.STDOUT)