X-Git-Url: https://git.phdru.name/?p=xsetbg.git;a=blobdiff_plain;f=xsetbg.py;h=1f318c7265edf8fc13e7cebf76eaeae94b357abb;hp=68828cf567b5db4c43875df9e5c36b737c02362d;hb=d51261dfda7db275699888e204d9f4ee1356e81a;hpb=d0638b38fd0bdacf3d8c44de46d75b421b2289eb 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!")