Permalink
Browse files

Added one more check to locate the youtube-viewer script in gtk-youtu…

…be-viewer, which should fix many problems.
  • Loading branch information...
1 parent f71a277 commit 2c605e7ae4e4a8a21960cb41d5976c0e95546a37 @trizen committed Aug 16, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 WWW-YoutubeViewer/bin/gtk-youtube-viewer
@@ -70,6 +70,12 @@ if (not -e $cli_youtube_viewer) {
$cli_youtube_viewer = rel2abs('./youtube-viewer');
}
+if (not -e $cli_youtube_viewer) {
+ require File::Basename;
+ my $dir = File::Basename::dirname(rel2abs($0));
+ $cli_youtube_viewer = catfile($dir, 'youtube-viewer');
+}
+
# Locating gcap
my $gcap;
foreach my $path (path()) {

0 comments on commit 2c605e7

Please sign in to comment.