# *
# * You should have received a copy of the GNU General Public License
# * along with this program; if not, write to the Free Software
-# * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# *
my $google = "http://www.google.com/search?q";
$_ = <>;
-chdir($ENV{HOME} . "/.sylpheed") or die("Can't find your .sylpheed directory\n");
+chdir($ENV{HOME} . "/.claws-mail") || die("Can't find your .claws-mail directory\n");
-open (SYLRC, "<sylpheedrc") || die("Can't open the sylpheedrc file\n");
+open (SYLRC, "<clawsrc") || die("Can't open the clawsrc file\n");
@rclines = <SYLRC>;
close 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;