[Natty] system-ready and login sounds do not play

Bug #718805 reported by Harry
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libcanberra (Ubuntu)
Fix Released
Medium
Rodrigo Moya
Natty
Fix Released
Medium
Rodrigo Moya

Bug Description

Since the libcanberra upgrade version 0.26-1ubuntu6 (and up to the newest version 0.26-1ubuntu9) the system ready and login sounds do not play anymore.
The package gnome-session-canberra should use canberra-gtk-play from libcanberra to play those sounds.
Now I cannot find anymore the executable "canberra-gtk-play" file.
It should be in the directory /usr/bin.

However, if I install the package libcanberra-gtk3-0, that file is installed (then the ready and login sounds do play)
But then again, there is no package (except mutter) depending on libcanberra-gtk3-0.
Also libcanberra-gtk3-0 pulls in libgtk3.0-0 and libgtk3.0-common.

This is a bug, should the executable "canberra-gtk-play" be also found in the package libcanberra-gtk0.

Related branches

Harry (harry33)
description: updated
Harry (harry33)
description: updated
Revision history for this message
Harry (harry33) wrote :

Right, I have investigated this bug further.

Because Natty does not have gtk+3.0 as a default installation, packages libgtk3.0-0 and libgtk3.0-common are not installed.
This creates a problem concerning libcanberra.

To be able to play system-ready (drums) and login sounds, an executable file "canberra-gtk-play" must be installed
(into the folder /usr/bin).
The latest libcanberra_0.26-1ubuntu9 installs it only with the package libcanberra-gtk3-0.
However, libcanberra-gtk3-0 depends on libgtk3.0-0.

So, without libcanberra-gtk3-0, it would be possible to install the executable "canberra-gtk-play" with the package libcanberra-gtk-0.
This is how it was done in the version libcanberra_0.25-0ubuntu1. In the later version the file was removed.

OK, to test this (this is also a workaround),
first check, that libcanberra-gtk3-0 is not installed.
Then copy (backup) the file "canberra-gtk-play" from the package libcanberra_0.25-0ubuntu1.
Then, install the latest version libcanberra_0.26-1ubuntu9 (this way "canberra-gtk-play" is not in your system).
Lastly copy paste the file "canberra-gtk-play" into the original folder /usr/bin.

Now the system-ready and login sounds are back.

Note that this bug does not influence event sounds (libcanberra-gtk-module).

Revision history for this message
Martin Pitt (pitti) wrote :

Thanks Harry for the great analysis!

Robert, it seems the packaging dropped canberra-gtk-play recently? Can you please put it back? Thanks!

Changed in libcanberra (Ubuntu):
assignee: nobody → Robert Ancell (robert-ancell)
milestone: none → ubuntu-11.04-beta
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Harry (harry33) wrote :

Martin and Robert,

Am I wrong to presume that "canberra-gtk-play" was dropped from package libcanberra-gtk-0 when libcanberra was upgraded to 0.26 series and got the GTK+3.0 support?
Because, it seems that it was exactly the moment when "canberra-gtk-play" was introduced into the package libcanberra-gtk3-0.
That one was of course built against GTK+3.0 and so libcanberra depended on libgtk3.0-0.

Now, even though GTK3 package libcanberra-gtk3-0 is not needed right now in ubuntu, there may be issues,
if both packages libcanberra-gtk-0 and libcanberra-gtk3-0 contain the executable "canberra-gtk-play" as it is installed into the very same folder /usr/bin/ .

Revision history for this message
Luke Yelavich (themuso) wrote : Re: [Bug 718805] Re: [Natty] system-ready and login sounds do not play

What is really needed her is canberra-gtk-play in both binaries, and under different names, however that would require the desktop files in gnome-session-canberra to have 2 different versions as well. I think we're best off getting canberra-gtk-play built against GTK2 only at this point, and since we will be moving closer to GTK3 in natty+1 then things should sort themselves out from there.

Revision history for this message
Martin Pitt (pitti) wrote :

Luke Yelavich [2011-02-15 22:25 -0000]:
> I think we're best off getting canberra-gtk-play built against GTK2
> only at this point, and since we will be moving closer to GTK3 in
> natty+1 then things should sort themselves out from there.

I agree.

Martin

--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)

Changed in libcanberra (Ubuntu Natty):
assignee: Robert Ancell (robert-ancell) → Rodrigo Moya (rodrigo-moya)
status: Triaged → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

Merged into packaging branch, but I had to run away last night before I was able to test and upload. Will upload after alpha-3.

Changed in libcanberra (Ubuntu Natty):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libcanberra - 0.28-0ubuntu1

---------------
libcanberra (0.28-0ubuntu1) natty; urgency=low

  [ Rodrigo Moya ]
  * New upstream release.
  * debian/patches/91-resolve-symbols.patch:
    - Upstreamed (https://bugs.freedesktop.org/show_bug.cgi?id=31454) and
      updated patch
  * debian/patches/01-dont-use-gtk-quit-add.patch:
    - Removed upstream patch
  * debian/patches/01_link_canberra_play_with_gtk2.patch:
    - For now, compile always canberra-gtk-play with GTK2
  * debian/libcanberra-gtk3-0.install:
  * debian/libcanberra-gtk0.install:
    - Move canberra-gtk-play back to libcanberra-gtk0 (LP: #718805)

  [ Martin Pitt ]
  * Adjust Replaces:/Breaks: for the moving of canberra-gtk-play.
 -- Rodrigo Moya <email address hidden> Thu, 03 Mar 2011 17:38:19 +0100

Changed in libcanberra (Ubuntu Natty):
status: Fix Committed → Fix Released
Harry (harry33)
Changed in libcanberra (Ubuntu Natty):
status: Fix Released → In Progress
Revision history for this message
Harry (harry33) wrote :

I changed the status of this bug report.
This was because I cannot confirm it is fixed.
However, the executable canberra-gtk-play is now installed into the correct folder.
It is just that it won't play. I still cannot hear system-ready nor login sounds.
This makes me believe that another bug has been introduced with this upload (0.28-0ubuntu1).
Once again the workaround I have described above works, up to the version 0.26-1ubuntu10.

I can see from Launchpad, that this version has already been superseeded because of incompatible settings system.
The newest build (0.28-0ubuntu2), however, failed to build.

Revision history for this message
Harry (harry33) wrote :

The newest update of 0.28-0ubuntu3 works OK.
So this bug is fixed now.

Changed in libcanberra (Ubuntu Natty):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.