rpms/gnome-session/devel gnome-session-enable-sound-by-default.patch, NONE, 1.1 gnome-session.spec, 1.142, 1.143

Bastien Nocera (hadess) fedora-extras-commits at redhat.com
Tue Oct 30 17:02:46 UTC 2007


Author: hadess

Update of /cvs/pkgs/rpms/gnome-session/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30093

Modified Files:
	gnome-session.spec 
Added Files:
	gnome-session-enable-sound-by-default.patch 
Log Message:
* Tue Oct 30 2007 - Bastien Nocera <bnocera at redhat.com> - 2.20.1-2
- Enable sound by default, without looking at the prefs


gnome-session-enable-sound-by-default.patch:

--- NEW FILE gnome-session-enable-sound-by-default.patch ---
Index: gnome-session/gsm-sound.c
===================================================================
--- gnome-session/gsm-sound.c	(revision 4457)
+++ gnome-session/gsm-sound.c	(working copy)
@@ -12,27 +12,12 @@
 #include <libgnome/gnome-sound.h>
 #include <libgnome/gnome-triggers.h>
 
-#define ENABLE_SOUND_KEY        "/desktop/gnome/sound/enable_esd"
 #define ENABLE_EVENT_SOUNDS_KEY "/desktop/gnome/sound/event_sounds"
 
 static gboolean
 sound_enabled (void)
 {
-  GConfClient *client;
-  GError      *error = NULL;
-  gboolean     retval;
-
-  client = gsm_get_conf_client ();
-
-  retval = gconf_client_get_bool (client, ENABLE_SOUND_KEY, &error);
-  if (error)
-    {
-      g_warning ("Error getting value of " ENABLE_SOUND_KEY ": %s", error->message);
-      g_error_free (error);
-      return FALSE;  /* Fallback value */
-    }
-
-  return retval;
+  return TRUE;
 }
 
 static gboolean


Index: gnome-session.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gnome-session/devel/gnome-session.spec,v
retrieving revision 1.142
retrieving revision 1.143
diff -u -r1.142 -r1.143
--- gnome-session.spec	15 Oct 2007 20:14:28 -0000	1.142
+++ gnome-session.spec	30 Oct 2007 17:02:09 -0000	1.143
@@ -12,7 +12,7 @@
 Summary: GNOME session manager
 Name: gnome-session
 Version: 2.20.1
-Release: 1%{?dist}
+Release: 2%{?dist}
 URL: http://www.gnome.org
 Source0: http://download.gnome.org/sources/gnome-session/2.20/%{name}-%{version}.tar.bz2
 Source1: redhat-default-session
@@ -39,6 +39,9 @@
 
 Patch1: gnome-session-2.2.2-icons.patch
 
+# Launch "esd" (really pulseaudio) all the time
+Patch2: gnome-session-enable-sound-by-default.patch
+
 # Launch gnome-user-share on login if enabled
 Patch7: gnome-session-2.13.92-user-share.patch
 
@@ -98,6 +101,7 @@
 %setup -q
 
 %patch1 -p1 -b .icons
+%patch2 -p0 -b .sound
 %patch7 -p1 -b .user-share
 %patch9 -p1 -b .no-crashes
 %patch13 -p1 -b .window-manager
@@ -188,6 +192,9 @@
 %doc %{_datadir}/man/man*/*
 
 %changelog
+* Tue Oct 30 2007 - Bastien Nocera <bnocera at redhat.com> - 2.20.1-2
+- Enable sound by default, without looking at the prefs
+
 * Mon Oct 15 2007 Matthias Clasen <mclasen at redhat.com> - 2.20.1-1
 - Update to 2.20.1 (translation updates)
 




More information about the fedora-extras-commits mailing list