From 2f35ca5dc1376c548d66c74a7653632b01b8f109 Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Mon, 14 Jan 2019 10:14:14 -0800 Subject: [PATCH] much faster screencapturing with scrot instead --- ezgui/src/runner.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ezgui/src/runner.rs b/ezgui/src/runner.rs index 0bd126b670..c5bc68141f 100644 --- a/ezgui/src/runner.rs +++ b/ezgui/src/runner.rs @@ -112,13 +112,13 @@ pub fn run>(mut gui: G, window_title: &str) { "Grabbing {} (of {}, {} total)", filename, cap.num_tiles_x, cap.num_tiles_y ); - if !process::Command::new("gnome-screenshot") - .args(&["--window", "--remove-border", "-f", &filename]) + if !process::Command::new("scrot") + .args(&["--quality", "100", "--focused", "--silent", &filename]) .status() .unwrap() .success() { - println!("gnome-screenshot failed; aborting"); + println!("scrot failed; aborting"); screen_cap = None; continue; }