From owner-freebsd-questions@FreeBSD.ORG Wed Aug 8 07:47:45 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30BF316A418 for ; Wed, 8 Aug 2007 07:47:45 +0000 (UTC) (envelope-from ow.mun.heng@wdc.com) Received: from wdscexfe02.sc.wdc.com (wdscexfe02.sc.wdc.com [129.253.170.52]) by mx1.freebsd.org (Postfix) with ESMTP id 0F36613C47E for ; Wed, 8 Aug 2007 07:47:44 +0000 (UTC) (envelope-from ow.mun.heng@wdc.com) Received: from wdmyexbe03.my.asia.wdc.com ([129.253.105.55]) by wdscexfe02.sc.wdc.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 8 Aug 2007 00:35:36 -0700 Received: from 129.253.107.212 ([129.253.107.212]) by wdmyexbe03.my.asia.wdc.com ([129.253.105.55]) with Microsoft Exchange Server HTTP-DAV ; Wed, 8 Aug 2007 07:35:33 +0000 Received: from neuromancer by 129.253.105.55; 08 Aug 2007 15:35:47 +0800 From: Ow Mun Heng To: David Benfell In-Reply-To: <20070808021222.GA29976@parts-unknown.org> References: <20070808021222.GA29976@parts-unknown.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Wed, 08 Aug 2007 15:35:47 +0800 Message-Id: <1186558547.29386.1.camel@neuromancer.home.net> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 X-OriginalArrivalTime: 08 Aug 2007 07:35:36.0709 (UTC) FILETIME=[B61A0350:01C7D98E] Cc: freebsd-questions@freebsd.org Subject: Re: What's the secret to gnome-terminal "open link?" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Aug 2007 07:47:45 -0000 On Tue, 2007-08-07 at 19:12 -0700, David Benfell wrote: > Hello all, > > I would really like the "open link" function to work under > gnome-terminal. But I can't find any relevant configuration > and a Google search comes up empty. gnome-terminal/src/terminal-screen.c open_url (TerminalScreen *screen, const char *orig_url, int flavor) { GError *err; char *url; g_return_if_fail (orig_url != NULL); /* this is to handle gnome_url_show reentrancy */ g_object_ref (G_OBJECT (screen)); switch (flavor) { case FLAVOR_DEFAULT_TO_HTTP: url = g_strdup_printf ("http:%s", orig_url); break; case FLAVOR_EMAIL: if (strncmp ("mailto:", orig_url, 7)) url = g_strdup_printf ("mailto:%s", orig_url); else url = g_strdup (orig_url); break; case FLAVOR_AS_IS: url = g_strdup (orig_url); break; default: url = NULL; g_assert_not_reached (); }