Re-order options by priority

Co-authored-by: Ondrej Baranovič <3819630+nulano@users.noreply.github.com>
This commit is contained in:
Andrew Murray 2023-04-26 19:35:33 +10:00 committed by GitHub
parent 1feed13c70
commit 4f280e9947
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ def grab(bbox=None, include_layered_windows=False, all_screens=False, xdisplay=N
left, top, right, bottom = bbox
im = im.crop((left - x0, top - y0, right - x0, bottom - y0))
return im
elif shutil.which("gnome-screenshot") or shutil.which("scrot"):
elif shutil.which("scrot") or shutil.which("gnome-screenshot"):
fh, filepath = tempfile.mkstemp(".png")
os.close(fh)
if shutil.which("scrot"): # prefer scrot, as it is less intrusive