+2003-02-23 [paul]
+
+ * tools/freshmeat_search.pl
+ tools/google_search.pl
+ scripts should now work for any browser/browser command line
+
2003-02-22 [christoph] 0.8.10claws45
* src/procmsg.c
my $freshmeat = "http://freshmeat.net/search?q";
$_ = <>;
-chdir($ENV{HOME} . "/.sylpheed") or die("Can't find your .sylpheed directory\n");
+chdir($ENV{HOME} . "/.sylpheed") || die("Can't find your .sylpheed directory\n");
open (SYLRC, "<sylpheedrc") || die("Can't open the sylpheedrc file\n");
@rclines = <SYLRC>;
if ($rcline =~ m/^uri_open_command/) {
chomp $rcline;
@browser = split(/=/, $rcline);
- $browser[1] =~ s/ '%s'$//;
+ $browser[1] =~ s/%s/$freshmeat=$_/;
}
}
-system("$browser[1] '$freshmeat=$_' &");
+system("$browser[1]&");
exit;
my $google = "http://www.google.com/search?q";
$_ = <>;
-chdir($ENV{HOME} . "/.sylpheed") or die("Can't find your .sylpheed directory\n");
+chdir($ENV{HOME} . "/.sylpheed") || die("Can't find your .sylpheed directory\n");
open (SYLRC, "<sylpheedrc") || die("Can't open the sylpheedrc file\n");
@rclines = <SYLRC>;
if ($rcline =~ m/^uri_open_command/) {
chomp $rcline;
@browser = split(/=/, $rcline);
- $browser[1] =~ s/ '%s'$//;
+ $browser[1] =~ s/%s/$google=$_/;
}
}
-
-system("$browser[1] '$google=$_' &");
+system("$browser[1]&");
exit;