From owner-freebsd-ports-bugs@FreeBSD.ORG Wed May 9 20:40:02 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB967106566C for ; Wed, 9 May 2012 20:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B1DCF8FC17 for ; Wed, 9 May 2012 20:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q49Ke1Jh088906 for ; Wed, 9 May 2012 20:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q49Ke1Q5088905; Wed, 9 May 2012 20:40:01 GMT (envelope-from gnats) Resent-Date: Wed, 9 May 2012 20:40:01 GMT Resent-Message-Id: <201205092040.q49Ke1Q5088905@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Ronald F.Guilmette" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 62E1A106566C for ; Wed, 9 May 2012 20:31:25 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: from outgoing.tristatelogic.com (segfault.tristatelogic.com [69.62.255.118]) by mx1.freebsd.org (Postfix) with ESMTP id 3A8908FC08 for ; Wed, 9 May 2012 20:31:25 +0000 (UTC) Received: by segfault.tristatelogic.com (Postfix, from userid 1237) id 7C6AE5081B; Wed, 9 May 2012 13:31:24 -0700 (PDT) Message-Id: <20120509203124.7C6AE5081B@segfault.tristatelogic.com> Date: Wed, 9 May 2012 13:31:24 -0700 (PDT) From: "Ronald F.Guilmette" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/167758: Install of x11/yelp fails to create or diddle mimeapps.list file X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Ronald F.Guilmette" List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 May 2012 20:40:02 -0000 >Number: 167758 >Category: ports >Synopsis: Install of x11/yelp fails to create or diddle mimeapps.list file >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed May 09 20:40:01 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Ronald F. Guilmette >Release: FreeBSD 8.3-RELEASE amd64 >Organization: entropy >Environment: System: FreeBSD segfault.tristatelogic.com 8.3-RELEASE FreeBSD 8.3-RELEASE #0: Mon Apr 9 21:23:18 UTC 2012 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Some gnome applications (e.g. gthumb) assume that URIs of the form "ghelp:..." are supported by the installed gtk/gio/glib libraries, e.g. via the GTK function `gtk_show_uri' (see libgtk) and also via the function `g_app_info_launch_default_for_uri' (see libgio, part of glib). Unfortunately, such URIs will not actually be supported unless and until the file `/usr/local/share/applications/mimeapps.list' is made to contain the following two magic text lines: [Added Associations] x-scheme-handler/ghelp=yelp.desktop Then and only then will the gtk/gio/glib functions properly support URIs where the URI scheme is "ghelp". Furthermore, the "ghelp" URI scheme is only supported when and if the program that has been designed to handles all URIs that begin with the "ghelp:" is installed. That program is yelp. Based upon all of the forgoing, it seems reasonable that a part of the standard install procedure for the x11/yelp port should be to append the two magic text lines shown above to the tail end of the /usr/local/share/applications/mimeapps.list file, creating that file if it does not already exist. >How-To-Repeat: portinstall gthumb gthumb (then click on "Help" and then "Contents") >Fix: This problem can be fixed by running the following trivial script as part of the standard install procedure for the x11/yelp port: ========================================================================= #!/bin/sh (echo '[Added Associations]'; \ echo 'x-scheme-handler/ghelp=yelp.desktop') \ >> /usr/local/share/applications/mimeapps.list ========================================================================= >Release-Note: >Audit-Trail: >Unformatted: