From mboxrd@z Thu Jan 1 00:00:00 1970 From: Federico Beffa Subject: Re: How to handle required plugins and dbus services for GNOME Programs? Date: Tue, 30 Jun 2015 08:52:12 +0200 Message-ID: References: <87zj3ohutd.fsf@gnu.org> <877fqmpx23.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9pOx-0008AR-Td for guix-devel@gnu.org; Tue, 30 Jun 2015 02:52:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9pOw-0006ma-Bd for guix-devel@gnu.org; Tue, 30 Jun 2015 02:52:15 -0400 In-Reply-To: <877fqmpx23.fsf@gnu.org> 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: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: Guix-devel On Mon, Jun 29, 2015 at 1:35 PM, Ludovic Court=C3=A8s wrote: > Federico Beffa skribis: > >> On Thu, Jun 25, 2015 at 1:49 PM, Ludovic Court=C3=A8s wro= te: >>> Federico Beffa skribis: >>> >>>> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >>> >>> [...] >>> >>>>> Really? In Evince, I can change the state of various things (such as >>>>> whether or not to view documents continuously), but those changes are >>>>> lost across restarts. However, changes made via dconf-editor are not >>>>> lost. Weird no? >>>> >>>> 'dconf' is responsible for handling the program configuration. For >>>> writes, it contacts D-Bus, for read it doesn't need D-Bus. >>>> >>>> https://developer.gnome.org/dconf/0.22/dconf-overview.html >>>> >>>> If 'dconf' is not available, the program reverts to a 'memory' back-en= d >>>> and configuration is lost upon exit. >>> >>> In this last sentence, are you referring to dconf-the-program, >>> dconf-the-library, or dconf-the-service? >>> >>> dconf-the-package is in my profile, so I would expect Evince to >>> automatically dbus-launch it when it needs to save its settings, but >>> apparently that doesn=E2=80=99t happen. >> >> I'm not sure about the terminology, but if you do >> >> GIO_EXTRA_MODULES=3D/gnu/store/...-dconf-0.22.0/lib/gio/modules evince >> >> it should work. (See comments in the 'glib-or-gtk-build-system'.) > > Oh, I see. > > Then, should we make dconf an implicit input of > glib-or-gtk-build-system? > > Or should we add it as an explicit dependency on a case-by-case basis? IMO, given that every GLib based program needs it, the right thing to do is to make it an implicit input of 'glib-or-gtk-build-system'. In a similar way, every GLib based program/library makes use of sound themes. For this to work it needs access to 'libcanberra'. Thus, for sound themes to work, 'libcanberra' should also be an implicit input of the build system. You may be using a desktop where no sound theme is used/configured and therefore not be seeing any message about this. But, if you use a desktop with a sound theme, e.g. GNOME, you will see the following messages: Gtk-Message: Failed to load module "canberra-gtk-module" This is taken care by setting GTK_PATH=3D/gnu/store/...-libcanberra-0.30/lib/gtk-3.0/modules and would be done automatically by the 'glib-or-gtk-build-system' if 'libcanberra' would be an implicit input. Regards, Fede