From 8854fa0f8a831264ed815b3615038dec89c6f632 Mon Sep 17 00:00:00 2001 From: joe Date: Wed, 1 Oct 2025 22:33:48 +0200 Subject: up --- .local/bin/dmscrot | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to '.local/bin/dmscrot') diff --git a/.local/bin/dmscrot b/.local/bin/dmscrot index 6560d79..2746cd7 100755 --- a/.local/bin/dmscrot +++ b/.local/bin/dmscrot @@ -3,6 +3,7 @@ use strict; use warnings; use File::HomeDir qw(home); + use constant { SAVE_PATH => 'pics/scrot/', SCREENSHOT_PATH => 'scrot', @@ -33,12 +34,16 @@ sub show_img sub notify_img { my ($file) = @_; + my $pid; - system( - NOTIFY_PATH, - ' screenshot captured to ' . "\n" . - $file + $pid = fork(); + if (not $pid) { + system( + NOTIFY_PATH, + ' screenshot captured to ' . "\n" . + $file ); + } return; } -- cgit v1.2.3