From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSMIL-0000LF-Pq for guix-patches@gnu.org; Tue, 04 Jul 2017 07:47:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSMII-0004A4-LA for guix-patches@gnu.org; Tue, 04 Jul 2017 07:47:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:48544) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSMII-00049u-HH for guix-patches@gnu.org; Tue, 04 Jul 2017 07:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dSMII-0000Mr-8B for guix-patches@gnu.org; Tue, 04 Jul 2017 07:47:02 -0400 Subject: [bug#26988] Add desktop-file-utils to all gtk applications Resent-Message-ID: From: iyzsong@member.fsf.org (=?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?=) References: <20170518230111.53a91ffe@scratchpost.org> <87inkwa1n1.fsf@fastmail.com> <20170520150411.21c3e0aa@scratchpost.org> <87h90f5e2h.fsf@fastmail.com> <87efvj549b.fsf@fastmail.com> <87eftx1qpw.fsf@member.fsf.org> <20170703190820.473d59c4@scratchpost.org> Date: Tue, 04 Jul 2017 19:40:39 +0800 In-Reply-To: <20170703190820.473d59c4@scratchpost.org> (Danny Milosavljevic's message of "Mon, 3 Jul 2017 19:08:20 +0200") Message-ID: <87eftw4eh4.fsf@member.fsf.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Danny Milosavljevic Cc: 26988-done@debbugs.gnu.org A profile hook checks manifest entries for some condition, then usually adding a item to the profile's united output. In case of the current 'xdg-desktop-database', it checks if any entry has a reference of glib, then adding the 'mimeinfo.cache' to the profile. So, ... Danny Milosavljevic writes: > Hi =E5=AE=8B=E6=96=87=E6=AD=A6, > > On Mon, 03 Jul 2017 23:32:11 +0800 > iyzsong@member.fsf.org (=E5=AE=8B=E6=96=87=E6=AD=A6) wrote: > >> >> GTK+ and Qt, it won't catch some cases where we add the ".desktop" fi= le >> >> manually such as "rxvt-unicode". > > How about just adding desktop-file-utils as a native-input to rxvt-unicod= e (and other few special cases) with a comment saying that's because of the= desktop file? In the sitution where you have rxvt-unicode but not any glib based applications in your profile, this will ensure the 'mimeinfo.cache' got built. But since there are no glib based things, I guess it won't be used. > >> So I end up with modify the profile hook to test for GLib, it should >> work in most cases. > > Glib is a basic C library that hasn't much to do with GUI. I think that = if you check for glib you'll run the hook for system daemons, dbus etc. Yeah, the hook only run once for all the packages in the profile.