Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions bin/shutter
Original file line number Diff line number Diff line change
Expand Up @@ -4093,6 +4093,12 @@ sub STARTUP {

if ($event eq 'deleted') {

my $v = $session_screens{$key};
if ($v && -e $v->{'giofile'}->get_path) {
print "deleted - $key exists ignored\n" if $sc->get_debug;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand what this sentence means

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Me neither, it does some magic! 😃

Copy link
Author

@takeseem takeseem Mar 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because save do $exiftool->WriteInfo($filename); in os is mv

  1. create a tmp file
  2. mv tmp $filename
    os will notify event: deleted, in fact the $filename is not deleted, it still exist in os, just innode changed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After asking the AI, I think this makes sense. The return line seems to prevent that the file is considered as deleted and thus not updated any more.

return;
}

$handle->cancel;

if (exists $session_screens{$key}) {
Expand Down
Loading