From owner-freebsd-gnome@FreeBSD.ORG Thu Oct 16 11:44:31 2008 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3947D1065689 for ; Thu, 16 Oct 2008 11:44:31 +0000 (UTC) (envelope-from andrew.w.nosenko@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.232]) by mx1.freebsd.org (Postfix) with ESMTP id 0C41D8FC16 for ; Thu, 16 Oct 2008 11:44:30 +0000 (UTC) (envelope-from andrew.w.nosenko@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so2900150rvf.43 for ; Thu, 16 Oct 2008 04:44:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=dGaorG2T1o6KxJmcIpDkmBjqE3GjP14NjbkmC5u2jus=; b=mJ+cXkci44q3o3Xq53noh9kG5EbaXQvp3sYhMmQLaxhl9wNQteXhMNnAXoEtr/teo7 g4ApdkIzI50L1gjah56yywXtauAQHpqtHTg/sVN9zqjSWk9gYol/Mw2hGILa8ln5PPWI LPChk1sxXVtXH8P7ySXZHGsl2JZqLk0jBAY60= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=VHrsRzqAY5BjxVt+oZmDVNwjs4FAxc79bhe+fzJR1KVkJm4WjGc8mIocqJrL4EPtVf /W7fW6luK5XRJF1zRYS2G5RQwDvARNtRagG/a9Dy5oix0lNs/VS1CYwGs7IhododItnt wlaqQABYTxKMxSSTHMKkp2GzDaiWxYA4BCRJE= Received: by 10.140.131.11 with SMTP id e11mr1492597rvd.153.1224155654741; Thu, 16 Oct 2008 04:14:14 -0700 (PDT) Received: by 10.141.34.5 with HTTP; Thu, 16 Oct 2008 04:14:14 -0700 (PDT) Message-ID: <6161f3180810160414l255ba30g38fd85b461f7c326@mail.gmail.com> Date: Thu, 16 Oct 2008 14:14:14 +0300 From: "Andrew W. Nosenko" To: "Mark Evenson" In-Reply-To: <48F7143D.4030807@gmx.at> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081015170420.DFE1A4500F@ptavv.es.net> <48F706D0.7000101@gmx.at> <48F7143D.4030807@gmx.at> Cc: freebsd-gnome@freebsd.org Subject: Re: Controlling Evolution MIME helper associations? X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Oct 2008 11:44:31 -0000 On Thu, Oct 16, 2008 at 1:15 PM, Mark Evenson wrote: > Mark Evenson wrote: > >> [...] >> So, I was hoping to get an idea of how that association is >> formed without going through the Evolution code (for which I haven't found >> the spare time to go through). > > Ok, I got a few moments to find out a plausible place to start looking for > this: > > evolution-2.22.3.1/mail/em_popup.c in emp_standard_menu_factory() calls > camel_data_wrapper_get_mime_type() to get a char* mime_type which is then > used to call through to gnome_vfs_mime_get_all_applications() to get > handling applications. > > So, it seems that Evolution does use "Nautilus" (i.e. the GNOME VFS > libraries) to determine which MIME handlers to use. > No. It shows that Evolution uses defferent path than Nautilus. Seems like Nautilus uses GIO (discovered by Nautilus' behavior, I'm did'n look into sources), while Evolution uses Gnome-VFS as your investigation shows. If I recall and understand correctly, these pathes are different since glib-2.16, Appropriate ChangeLog entry is (gio/ChangeLog): 6461 alexl 2008-02-06 Alexander Larsson 6461 alexl 6461 alexl * gdesktopappinfo.c: 6461 alexl Update to use both mimeapps.list and 6461 alexl defaults.list as discussed on xdg list. Workaround: use hand-written defaults.list (~/.local/share/applications/defaults.list) for enforse need association. > Is there an easy way to get Evolution to build so I could use a debugger? > This was non-trivial last time I tried (sometime last year), as I had to > figure out how to get all the associated libraries compiled on a > case-by-case basis with debug symbols? -- Andrew W. Nosenko