diff options
Diffstat (limited to '')
-rwxr-xr-x | .local/bin/dmscrot | 13 |
1 files changed, 9 insertions, 4 deletions
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; } |