From: Oleg Broytman Date: Fri, 19 Feb 2021 20:23:05 +0000 (+0300) Subject: Feat: For TIFF files use `xsetbg` X-Git-Tag: 5.1.0~20 X-Git-Url: https://git.phdru.name/?p=xsetbg.git;a=commitdiff_plain;h=d51261dfda7db275699888e204d9f4ee1356e81a Feat: For TIFF files use `xsetbg` --- diff --git a/xsetbg.py b/xsetbg.py index 68828cf..1f318c7 100644 --- a/xsetbg.py +++ b/xsetbg.py @@ -125,6 +125,10 @@ def change(force=False): "-center", "-onroot", "-quiet", "-zoom", "auto", row.full_name.encode(fs_encoding)] + ext = os.path.splitext(row.full_name)[1].lower() + if ext in ('tif', 'tiff'): + program_options[0] = 'xsetbg' + rc = subprocess.call(program_options) if rc: error("cannot execute xli!")