Skip to content
Merged
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
11 changes: 11 additions & 0 deletions bin/shutter
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ my $nautilus_sendto = TRUE;
my $goocanvas = TRUE;
my $exiftool = TRUE;
my $appindicator = TRUE;
my $pathclass = TRUE;
fct_init_depend();

#--------------------------------------
Expand Down Expand Up @@ -8359,6 +8360,9 @@ sub STARTUP {
#parse filename
my ($name, $folder, $type) = fileparse($ukey, qr/\.[^.]*/);

#skip Imgur if optional dependency Path::Class not met
next if ($name eq 'Imgur' && !$pathclass);

#~ print $name, $folder, $type, "\n";

if ( !exists $accounts{$name}
Expand Down Expand Up @@ -9392,6 +9396,13 @@ sub STARTUP {
$exiftool = FALSE;
}

#Path::Class
eval { require Path::Class };
if ($@) {
warn "WARNING: Path::Class is missing --> uploading to Imgur will be disabled!\n\n";
$pathclass = FALSE;
}

#dev-libs/libappindicator[introspection]
eval {
Glib::Object::Introspection->setup(
Expand Down
Loading