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;