Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 267020

Summary: media-libs/libcanberra should include a xinit-script
Product: Gentoo Linux Reporter: Peter Alfredsen (RETIRED) <loki_val>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED INVALID    
Severity: enhancement    
Priority: High    
Version: 2008.0   
Hardware: All   
OS: Linux   
URL: https://tango.0pointer.de/pipermail/libcanberra-discuss/2008-July/000021.html
Whiteboard:
Package list:
Runtime testing required: ---

Description Peter Alfredsen (RETIRED) gentoo-dev 2009-04-21 21:08:48 UTC
I came across this when I was fiddling with Fontforge. Without GTK_MODULES set to the correct value, it will barf at me thusly:
Gtk-Message: Failed to load module "canberra-gtk-module": libltdl.so.7: cannot open shared object file: No such file or directory

I found the email in URL from upstream

Quoting verbatim:
<quote>
Packagers!

If you package libcanberra, make sure to include a script like this
one in your package:

<snip>
#!/bin/sh

if [ -z "$GTK_MODULES" ] ; then
        GTK_MODULES="libcanberra-gtk-module"
else
        GTK_MODULES="$GTK_MODULES:libcanberra-gtk-module"
fi

export GTK_MODULES
</snip>

This script should be sourced in each Gnome session and will enable
the libcanberra gtk module for all gtk programs.

In fedora we install it as "libcanberra-gtk-module.sh" in
/etc/X11/xinit/xinitrc.d/. I assume other distributions have similar
directories.

In the future we will move this to a GtkSetting read from gconf, but
as it stands now that part in gnome-session sucks big time, so in
the meantime we do it with env vars:

http://bugzilla.gnome.org/show_bug.cgi?id=539840

Lennart
</quote>
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-04-21 23:15:26 UTC
as you can see from the link this dates back from july and has since been changed to use GtkSettings. Unless you are speaking of a gconf less system that I can't test that might eventually require such thing, this issue is moot.
Comment 2 Peter Alfredsen (RETIRED) gentoo-dev 2009-04-21 23:44:38 UTC
D'oh. Only when I run as root. As the normal user, no problems.