[Konversation-devel] [Bug 99354] Googling from the input box

ismail donmez ( cartman ) ismail at kde.org
Thu Jul 1 15:59:27 CEST 2010


https://bugs.kde.org/show_bug.cgi?id=99354





--- Comment #6 from ismail ( cartman ) donmez <ismail kde org>  2010-07-01 15:59:22 ---

    A     scripts/google     [License: Trivialfile.]

commit 551c7d287bd905882c9310c4fdc00c9a67ed992d
Author: İsmail Dönmez <ismail at kde.org>
Date:   Sat Feb 19 09:38:55 2005 +0000

    A google script. Launches konqueror with google search url.Try /google kde
    BUG:99354
    FEATURE:

    svn path=/trunk/kdeextragear-2/konversation/; revision=390828

diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index dc15c2c..af63141 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -1,4 +1,4 @@
 scriptsdir=$(kde_datadir)/konversation/scripts
-scripts_SCRIPTS=bug fortune gauge uptime kdeversion cmd sayclip weather
colorizer sysinfo media mail
+scripts_SCRIPTS=bug fortune gauge uptime kdeversion cmd sayclip weather
colorizer sysinfo media mail google
 scripts_DATA=fortunes.dat

diff --git a/scripts/google b/scripts/google
new file mode 100755
index 0000000..af902ee
--- /dev/null
+++ b/scripts/google
@@ -0,0 +1,22 @@
+#!/usr/bin/env perl
+#
+# Copyright (C) 2004 by İsmail Dönmez
+# Licensed under GPL v2 or later at your option
+
+use warnings;
+use strict;
+
+my $PORT= shift;
+shift;
+shift;
+my $url="http://www.google.com/search?q=";
+
+if(!@ARGV)
+{
+    exec 'dcop', $PORT, 'Konversation', 'error', 'Please provide a query, e.g
/google linux';
+}
+else
+{
+    $url="$url at ARGV";
+    exec 'kfmclient','openURL',$url;
+}

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Konversation-devel mailing list