Skip to content

Commit 29b64ea

Browse files
Update src/PIL/ImageGrab.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
1 parent 674b239 commit 29b64ea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/PIL/ImageGrab.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ def grab(
8989
if display_name is None and sys.platform not in ("darwin", "win32"):
9090
if shutil.which("gnome-screenshot"):
9191
args = ["gnome-screenshot", "-f"]
92-
elif shutil.which("spectacle"):
93-
args = ["spectacle", "-n", "-b", "-f", "-o"]
9492
elif shutil.which("grim"):
9593
args = ["grim"]
94+
elif shutil.which("spectacle"):
95+
args = ["spectacle", "-n", "-b", "-f", "-o"]
9696
else:
9797
raise
9898
fh, filepath = tempfile.mkstemp(".png")

0 commit comments

Comments
 (0)