After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 518075 - Sound plugin should start pulseaudio itself
Sound plugin should start pulseaudio itself
Status: RESOLVED FIXED
Product: gnome-settings-daemon
Classification: Core
Component: plugins
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks: 466458
 
 
Reported: 2008-02-22 14:39 UTC by Bastien Nocera
Modified: 2008-02-28 18:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gsd-launch-esd.patch (4.58 KB, patch)
2008-02-28 16:56 UTC, Bastien Nocera
none Details | Review

Description Bastien Nocera 2008-02-22 14:39:35 UTC
This would mean there's no races with gnome-session about starting the sound server, and gnome-settings-daemon would be able to cache the samples properly.

It also means that sound effects would just work in GDM.
Comment 1 Bastien Nocera 2008-02-28 16:56:12 UTC
Created attachment 106173 [details] [review]
gsd-launch-esd.patch

Launch esd ourselves. I'm pretty sure the sample reloading is broken.

We launch esd/pulseaudio even if we're not using esd support, as we need a sound server to put the samples in.
Comment 2 Jens Granseuer 2008-02-28 17:45:54 UTC
Doesn't building without esd support simply mean that you *don't* have a sample cache (and as such no sound effects)? In any case, I'd much prefer making esd not being available a warning instead of a fatal error. Just use a default path, and if it's not there, launching it will fail, but so what.
Comment 3 Bastien Nocera 2008-02-28 18:14:27 UTC
I'd like to think that building without esd means that we don't use esd itself (and the crappy quirks that go with it, such as the standby mode).

If people don't want sound, they can use the GConf key, or build libgnome without esd support (which is just stubs iirc).

I've downgraded the inability to launch esd to a g_printerr(), so we don't crash if esd can't be launched.
Comment 4 Bastien Nocera 2008-02-28 18:15:55 UTC
2008-02-28  Bastien Nocera  <hadess@hadess.net>

	* plugins/sound/gsd-sound-manager.c (reset_esd_pid),
	(start_gnome_sound), (stop_gnome_sound), (apply_settings),
	(gsd_sound_manager_stop): Start the sound server ourselves,
	as we need it to cache samples. If esd (or the PulseAudio
	esd compat bits) isn't available, just print an error, and
	don't try to cache the samples

	If you use PulseAudio instead of esound in your distribution,
	build with --disable-esd passed to configure

	(Closes: #518075)