Comment 24 for bug 731874

Revision history for this message
jnko (joern-koerner) wrote :

I did a little bit debugging in the last 15 minutes and found the cause of this crash.
(Shutter 0.94, Rev 1290 running on Archlinux)

Shutter crashes when starting a second instance at line 345

 $app->send_message( 11, uris => \@escaped_filenames );

Simply comment this and it won't crash anymore. I didn't dive into the code yet but reading shutter command line help and that part of the code I just don't see what 'uris' should be passed to shutter at this point. But this is surely related to me since I'm not a perl monk at all.

        #escape all filenames, see Bug #737428
        my @escaped_filenames;
        foreach my $file (@init_files) {
            push @escaped_filenames, Gnome2::VFS->escape_string($file);
        }
        #$app->send_message( 11, uris => \@escaped_filenames );
    }

    print "\nINFO: There is already another instance of Shutter running!\n";

    #Create the single application instance and wait for other requests