Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267020 - media-libs/libcanberra should include a xinit-script
Summary: media-libs/libcanberra should include a xinit-script
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://tango.0pointer.de/pipermail/l...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-21 21:08 UTC by Peter Alfredsen (RETIRED)
Modified: 2009-04-21 23:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.