From d51261dfda7db275699888e204d9f4ee1356e81a Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 19 Feb 2021 23:23:05 +0300 Subject: [PATCH] Feat: For TIFF files use `xsetbg` --- xsetbg.py | 4 ++++ 1 file changed, 4 insertions(+) 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!") -- 2.39.5