From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabian Harfert Subject: Desktop variables and caches Date: Thu, 18 Feb 2016 15:51:09 +0100 Message-ID: <20160218155109.2e5a817c@alarmpi> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWPvV-0001uo-NN for guix-devel@gnu.org; Thu, 18 Feb 2016 09:51:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWPvS-0003l9-E2 for guix-devel@gnu.org; Thu, 18 Feb 2016 09:51:29 -0500 Received: from mout.web.de ([212.227.17.12]:52696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWPvS-0003l4-4s for guix-devel@gnu.org; Thu, 18 Feb 2016 09:51:26 -0500 Received: from alarmpi ([217.232.195.230]) by smtp.web.de (mrweb102) with ESMTPSA (Nemesis) id 0LsyNK-1ZqzH50JAo-012cCa for ; Thu, 18 Feb 2016 15:51:25 +0100 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 Hi! While working on and testing my MATE packages I noticed the following things: I already mentioned this before, but it belongs here, too: Gtk+ needs the environment variable GTK_DATA_PREFIX defined to the user profile directory to find themes. For GdkPixbuf it's necessary to define GDK_PIXBUF_MODULEDIR to the sub-directory lib/gdk-pixbuf-2.0/2.10.0/loaders of the users profile to make it finding loader modules like the one provided by librsvg for SVG support. In addition the command 'gdk-pixbuf-query-loaders' needs to be called to cache the different loaders. For that the variable GDK_PIXBUF_MODULE_FILE has to contain the cache file (lib/gdk-pixbuf-2.0/2.10.0/loaders.cache). That must be done when the profile is built. To allow GLib GSettings to find it's compiled settings schemas the command 'glib-compile-schemas' with the share/glib-2.0/schemas directory needs to be called when the profile is built. The last two points result in the fact, that each package using extensions to GdkPixbuf or GSettings schemas from other packages needs to propagate them (e.g. librsvg or gsettings-desktop-schemas). We also need to define the XDG_CONFIG_DIRS variable. It is used by several applications to find files in etc from other applications. Please note that I'm still not using the Guix system distribution, so I don't know if this also applies for that platform, but I think so. Fabian