gdm patch
- From: Mathieu Lacage <mathieu eazel com>
- To: gnome-hackers gnome org
- Subject: gdm patch
- Date: 12 Dec 2000 21:43:45 -0800
Hi all,
May I apply the folowing patch to gdm2 ?
It is a patch from the RH' packages...
The reason for this patch is that if you just do a
gnome_sound_shuitdown, the sound is initialized anyway
so you get errors if sound is not working properly on
the machine.
Mathieu
Index: gdmconfig.c
===================================================================
RCS file: /cvs/gnome/gdm2/gui/gdmconfig.c,v
retrieving revision 1.2
diff -u -r1.2 gdmconfig.c
--- gdmconfig.c 1999/09/29 22:56:35 1.2
+++ gdmconfig.c 2000/12/13 02:38:01
@@ -1162,10 +1162,22 @@
int main (int argc, gchar* argv[])
{
static GnomeHelpMenuEntry help = { NULL, "gdmconfig" };
+ char **myargv;
+ int myargc, i;
gnome_do_not_create_directories = TRUE;
- gnome_init ("gdmconfig", VERSION, argc, argv);
- gnome_sound_shutdown ();
+
+ myargc = argc + 1;
+ myargv = (char **) g_new0(char *, myargc+1);
+ for (i=0; i < argc; i++) {
+ myargv[i] = argv[i];
+ }
+
+ myargv[myargc-1] = "--disable-sound";
+
+ gnome_init ("gdmconfig", VERSION, myargc, myargv);
+ g_free(myargv);
+
help.name = gnome_app_id;
bindtextdomain (PACKAGE, GNOMELOCALEDIR);
--
Mathieu Lacage <mathieu eazel com>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]