]> git.phdru.name Git - xsetbg.git/commitdiff
Feat: For TIFF files use `xsetbg`
authorOleg Broytman <phd@phdru.name>
Fri, 19 Feb 2021 20:23:05 +0000 (23:23 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 19 Feb 2021 20:26:39 +0000 (23:26 +0300)
xsetbg.py

index 68828cf567b5db4c43875df9e5c36b737c02362d..1f318c7265edf8fc13e7cebf76eaeae94b357abb 100644 (file)
--- 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!")