mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-27 16:36:02 +03:00
much faster screencapturing with scrot instead
This commit is contained in:
parent
164cd7d757
commit
2f35ca5dc1
@ -112,13 +112,13 @@ pub fn run<T, G: GUI<T>>(mut gui: G, window_title: &str) {
|
|||||||
"Grabbing {} (of {}, {} total)",
|
"Grabbing {} (of {}, {} total)",
|
||||||
filename, cap.num_tiles_x, cap.num_tiles_y
|
filename, cap.num_tiles_x, cap.num_tiles_y
|
||||||
);
|
);
|
||||||
if !process::Command::new("gnome-screenshot")
|
if !process::Command::new("scrot")
|
||||||
.args(&["--window", "--remove-border", "-f", &filename])
|
.args(&["--quality", "100", "--focused", "--silent", &filename])
|
||||||
.status()
|
.status()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.success()
|
.success()
|
||||||
{
|
{
|
||||||
println!("gnome-screenshot failed; aborting");
|
println!("scrot failed; aborting");
|
||||||
screen_cap = None;
|
screen_cap = None;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user