From 1f8d489b66fc976bfac38277d0966bbd25c0c6d5 Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 9 Feb 2022 23:02:33 +0100 Subject: flameshot: Rebase patch against version 11.0.0 This is a major upstream release which deprecates a few of our options but also made our patch a little longer because the tools we remove are now defined in multiple places. The patch itself is pretty much doing the same things as before we do have one thing that is different, which is that we now create the savePath directory if it doesn't exist. I do know that this doesn't necessary need to be a directory but in the way I'm using flameshot it is, so I don't care ;-) While at it, I also disabled the checkForUpdates option, because this has annoyed me for some time and I really don't care if the version is the latest for a screenshot utility. Signed-off-by: aszlig --- tests/aszlig/programs/flameshot.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/aszlig/programs/flameshot.nix b/tests/aszlig/programs/flameshot.nix index 35e1d570..8dc5e33d 100644 --- a/tests/aszlig/programs/flameshot.nix +++ b/tests/aszlig/programs/flameshot.nix @@ -19,8 +19,11 @@ machine.wait_for_x() machine.wait_for_file("/home/alice/.Xauthority") machine.succeed("xauth merge ~alice/.Xauthority") - machine.succeed('su -c "DISPLAY=:0.0 flameshot gui" - alice &') - machine.wait_for_text('(?i)capture the screen') + machine.succeed('su -c "DISPLAY=:0.0 flameshot gui" - alice >&2 &') + machine.wait_for_text('(?i)save screenshot') machine.screenshot('flameshot') + machine.send_key("ctrl-s") + machine.wait_until_succeeds('ls -1 ~alice/screenshots/ | grep -q png') + machine.screenshot('flameshot_done') ''; } -- cgit 1.4.1