From mboxrd@z Thu Jan 1 00:00:00 1970 From: iyzsong@member.fsf.org (=?utf-8?B?5a6L5paH5q2m?=) Subject: Re: [PATCH 2/2] profiles: Add xdg-mime-database hook. Date: Sun, 31 Jan 2016 20:32:56 +0800 Message-ID: <87fuxe53pj.fsf@member.fsf.org> References: <1454241798-14243-1-git-send-email-iyzsong@gmail.com> <1454241798-14243-2-git-send-email-iyzsong@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPrBk-0005Cf-VB for guix-devel@gnu.org; Sun, 31 Jan 2016 07:33:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPrBg-0000PY-V9 for guix-devel@gnu.org; Sun, 31 Jan 2016 07:33:08 -0500 Received: from smtp5.openmailbox.org ([62.4.1.39]:58029) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPrBg-0000Oa-PO for guix-devel@gnu.org; Sun, 31 Jan 2016 07:33:04 -0500 In-Reply-To: <1454241798-14243-2-git-send-email-iyzsong@gmail.com> (=?utf-8?B?IuWui+aWh+atpiIncw==?= message of "Sun, 31 Jan 2016 20:03:18 +0800") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org The xdg-desktop-database hook rebuilds the 'mimeinfo.cache' database from desktop files of applications, which then is used to decide the "Default Application" (in thunar, nautilus, etc.) for a MIME type. The xdg-mime-database hook rebuilds the 'mime.cache' database, it's the shared mime-info database used to decide the MIME type for files.