add script to enable phoenix as default browser
authorPaul Mangan <paul@claws-mail.org>
Wed, 8 Jan 2003 09:53:19 +0000 (09:53 +0000)
committerPaul Mangan <paul@claws-mail.org>
Wed, 8 Jan 2003 09:53:19 +0000 (09:53 +0000)
AUTHORS
ChangeLog.claws
tools/Makefile.am
tools/launch_phoenix [new file with mode: 0644]

diff --git a/AUTHORS b/AUTHORS
index eb091ff..6604b4f 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -165,3 +165,4 @@ contributors (beside the above; based on Changelog)
        Topia
        Luke Plant
        Gál Zoltán
+       Mohammed Sameer
index 716898e..7df2bcf 100644 (file)
@@ -1,3 +1,19 @@
+2003-01-08 [paul]
+
+       * tools/Makefile.am
+         tools/launch_phoenix  ** NEW FILE **
+               add script that enables using Phoenix as the default
+               web browser. 
+               Submitted by Mohammed Sameer <Uniball@linux-egypt.org>
+               
+       * tools/OOo2sylpheed.pl
+               remove full path to sylpheed executable, just 'sylpheed'
+               will do
+               
+       * tools/README
+               add launch_phoenix informtion and re-arrange and compress
+               the data a little
+
 2003-01-07 [christoph] 0.8.8claws65
 
        * src/folder.c
index a61d9a7..b764b07 100644 (file)
@@ -8,6 +8,7 @@ EXTRA_TOOLS = \
        google_msgid.pl \
        kmail2sylpheed.pl \
        kmail2sylpheed_v2.pl \
+       launch_phoenix \
        newscache_clean.pl \
        outlook2sylpheed.pl \
        sylpheed-switcher \
diff --git a/tools/launch_phoenix b/tools/launch_phoenix
new file mode 100644 (file)
index 0000000..01dec7f
--- /dev/null
@@ -0,0 +1,47 @@
+#!/bin/bash
+
+# Copyright © 2002 Mohammed Sameer <Uniball@linux-egypt.org> 
+#
+# This file is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# 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.
+#
+############################################################################
+# Script Name: launch_phoenix
+# Author: Mohammed Sameer <Uniball@linux-egypt.org>
+# Script Version: 0.1
+# Script Purpose: Check for a running phoenix process and and open a new tab 
+#                 with a given URL or execute phoenix with that URL
+# Usage: preferences->other->web browser-> "launch_phoenix "%s""
+############################################################################
+
+URL=$*
+
+phoenix_running()
+{
+phoenix -remote "openurl($URL,new-tab)"
+}
+phoenix_new()
+{
+phoenix $URL
+}
+
+
+STR=`phoenix -remote "ping()" 2>&1 | grep No`
+#echo $STR
+if [[ "$STR" == "No running window found." ]]; then
+phoenix_new;
+else
+phoenix_running;
+fi
+