X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=xsetbg.py;h=706e183ef2cad8338877b5a6c59bfa04a419c2c5;hb=d6edab4a0f2b32288b355269da94813007c6ba00;hp=1f318c7265edf8fc13e7cebf76eaeae94b357abb;hpb=d51261dfda7db275699888e204d9f4ee1356e81a;p=xsetbg.git diff --git a/xsetbg.py b/xsetbg.py index 1f318c7..706e183 100644 --- a/xsetbg.py +++ b/xsetbg.py @@ -129,6 +129,12 @@ def change(force=False): if ext in ('tif', 'tiff'): program_options[0] = 'xsetbg' + if ext == 'webp': + program_options = ['display', '-backdrop', + '-background', random.choice(borders), + '-window', 'root', + row.full_name.encode(fs_encoding)] + rc = subprocess.call(program_options) if rc: error("cannot execute xli!")