summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2023-07-08 16:37:53 -0400
committerKjetil Orbekk <kj@orbekk.com>2023-07-08 16:37:53 -0400
commit772a349c26603c6306f380d0635a4f7b4587a2ef (patch)
treeeb2bf188858cab30a0d49d91001607c9f75dfa0c
parent60f35c6cd569f8ce34808da1e93c370c6df9856c (diff)
fix
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 9f20a01..230da83 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -41,7 +41,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
let img = e.screenshot().await?;
let output_path = Path::new(&args.path);
- let tmp_path = output_path.join(".tmp");
+ let tmp_path = output_path.with_extension("png.tmp");
fs::write(&tmp_path, img)?;
fs::rename(&tmp_path, output_path)?;
time::sleep(Duration::from_secs(15)).await;