unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Federico Beffa <beffa@ieee.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: wingo@pobox.com, iyzsong@member.fsf.org, 21842@debbugs.gnu.org
Subject: bug#21842: Brasero fails to start on foreign distros
Date: Fri, 6 Nov 2015 17:31:15 +0100	[thread overview]
Message-ID: <CAKrPhPOe8RNTaKLPc+bMPEPShqKki7uDRznbyYpZJh_y3amMQA@mail.gmail.com> (raw)
In-Reply-To: <87fv0jji88.fsf@gnu.org>

On Fri, Nov 6, 2015 at 3:49 PM, Ludovic Courtès <ludo@gnu.org> wrote:
> As Andy notes on IRC, Brasero currently fails to start:
>
> --8<---------------cut here---------------start------------->8---
> $  /gnu/store/dq3817g8w80c9hffbgzspslqjy7szq35-brasero-3.12.1/bin/brasero
>
> ** (brasero:21487): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
>
> (brasero:21487): GLib-GIO-ERROR **: Settings schema 'org.gnome.brasero.config' is not installed
>
> Trace/breakpoint trap (core dumped)
> --8<---------------cut here---------------end--------------->8---
>
> On GuixSD, it starts just fine *if* it is installed in ~/.guix-profile,
> because XDG_DATA_DIRS and XDG_CONFIG_DIRS are appropriately set.
>
> However, on foreign distros, it doesn’t work out of the box.
>
> Andy suggests using ‘glib-or-gtk-build-system’ for Brasero, which
> appears to solve the problem.
>
> WDYT?

I think that using the 'glib-or-gtk-build-system' is the right thing
to do. It will create a wrapper with the correct value of some
environment variables, enabling the program to find its schema.

>
> Should we add a profile hook similar to ‘gtk-icon-themes’ in (guix
> profiles) but for schemas?

I do not think so because if a program gets the wrong schema (say, a
different incompatible version) then it may crash. With the
'glib-or-gtk-build-system' it is guaranteed that it will find the
schema used at build time.

Speaking of GTK+ applications: I think that removing the generation of
'icon-theme.cache' from the 'glib-or-gtk-build-system' was a mistake
(I may even have suggested this). It is my understanding (see [1, 2])
that this file is not strictly necessary, however it speeds up things
and is therefore useful. Having the cache generated by the
build-system allows one to use the program optimally without having to
install it into a profile.

The icon profile hook is still useful because it allows one to add
icon themes a posteriori, that is after having build a program
derivation and without having to rebuild it. The wrapper created by
'glib-or-gtk-build-system' still looks in the directories listed in
XDG_DATA_DIRS (similarly for some other variables). See also the
discussion at [3].

The reason for removing the phase from the build system was to
suppress annoying collision warnings, but in my opinion it would be
better to suppress them in a different way. As long as the profile
hook is the last derivation being installed in a profile, such
collisions are harmless and should just be masked.

Regards,
Fede

[1] https://developer.gnome.org/gtk3/stable/gtk-update-icon-cache.html
[2] http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html
[3] https://lists.gnu.org/archive/html/guix-devel/2015-01/msg00108.html

  reply	other threads:[~2015-11-06 16:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-06 14:49 bug#21842: Brasero fails to start on foreign distros Ludovic Courtès
2015-11-06 16:31 ` Federico Beffa [this message]
2015-11-07 14:19   ` 宋文武
2015-11-20 14:58     ` Ludovic Courtès
2015-11-07 14:37   ` 宋文武

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKrPhPOe8RNTaKLPc+bMPEPShqKki7uDRznbyYpZJh_y3amMQA@mail.gmail.com \
    --to=beffa@ieee.org \
    --cc=21842@debbugs.gnu.org \
    --cc=iyzsong@member.fsf.org \
    --cc=ludo@gnu.org \
    --cc=wingo@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).