projects
/
claws.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated and improved outlook2sylpheed.pl
[claws.git]
/
tools
/
google_search.pl
diff --git
a/tools/google_search.pl
b/tools/google_search.pl
index bf02bf32eac9ad706640d046187520163c16ed2c..30b19088009c0f3dcc3939dd465ce69a1fb0b9a6 100644
(file)
--- a/
tools/google_search.pl
+++ b/
tools/google_search.pl
@@
-20,7
+20,7
@@
my $google = "http://www.google.com/search?q";
$_ = <>;
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>;
open (SYLRC, "<sylpheedrc") || die("Can't open the sylpheedrc file\n");
@rclines = <SYLRC>;
@@
-30,11
+30,10
@@
foreach $rcline (@rclines) {
if ($rcline =~ m/^uri_open_command/) {
chomp $rcline;
@browser = split(/=/, $rcline);
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;
exit;