From: Paul Mangan Date: Wed, 8 Jan 2003 09:53:19 +0000 (+0000) Subject: add script to enable phoenix as default browser X-Git-Tag: rel_0_8_9~91 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=318045f9b1d20292ec18a228661c8ccf0d56a777 add script to enable phoenix as default browser --- diff --git a/AUTHORS b/AUTHORS index eb091ffd9..6604b4fcf 100644 --- a/AUTHORS +++ b/AUTHORS @@ -165,3 +165,4 @@ contributors (beside the above; based on Changelog) Topia Luke Plant Gál Zoltán + Mohammed Sameer diff --git a/ChangeLog.claws b/ChangeLog.claws index 716898ebb..7df2bcfff 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -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 + + * 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 diff --git a/tools/Makefile.am b/tools/Makefile.am index a61d9a739..b764b0705 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -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 index 000000000..01dec7ffc --- /dev/null +++ b/tools/launch_phoenix @@ -0,0 +1,47 @@ +#!/bin/bash + +# Copyright © 2002 Mohammed Sameer +# +# 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 +# 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 +