mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-13 16:54:45 +03:00
Re-order options by priority
Co-authored-by: Ondrej Baranovič <3819630+nulano@users.noreply.github.com>
This commit is contained in:
parent
1feed13c70
commit
4f280e9947
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user