Merge lp:~bratsche/xsplash/two-log-files-and-a-microphone into lp:xsplash

Proposed by Cody Russell
Status: Merged
Merged at revision: not available
Proposed branch: lp:~bratsche/xsplash/two-log-files-and-a-microphone
Merge into: lp:xsplash
Diff against target: 35 lines
1 file modified
src/xsplash.c (+5/-4)
To merge this branch: bzr merge lp:~bratsche/xsplash/two-log-files-and-a-microphone
Reviewer Review Type Date Requested Status
Ted Gould (community) Approve
Review via email: mp+13226@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Ted Gould (ted) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/xsplash.c'
--- src/xsplash.c 2009-10-05 21:48:01 +0000
+++ src/xsplash.c 2009-10-12 15:25:18 +0000
@@ -997,8 +997,6 @@
997 }997 }
998}998}
999999
1000#define XSPLASH_LOG "/var/log/gdm/xsplash.log"
1001
1002int1000int
1003main (int argc, char *argv[])1001main (int argc, char *argv[])
1004{1002{
@@ -1008,6 +1006,7 @@
1008 DBusGConnection *system_bus;1006 DBusGConnection *system_bus;
1009 DBusGProxy *bus_proxy;1007 DBusGProxy *bus_proxy;
1010 guint nameret = 0;1008 guint nameret = 0;
1009 gchar *log_filename = NULL;
1011 struct passwd *pwd;1010 struct passwd *pwd;
10121011
1013 pwd = getpwnam (XSPLASH_USER);1012 pwd = getpwnam (XSPLASH_USER);
@@ -1039,10 +1038,12 @@
1039 exit (1);1038 exit (1);
1040 }1039 }
10411040
1041 log_filename = g_strdup_printf ("/var/log/gdm/xsplash-%s.log", gdm_session ? "gdm" : "user");
1042 log_init (log_filename); g_message ("xsplash started");
1043 g_free (log_filename);
1044
1042 gtk_init (&argc, &argv);1045 gtk_init (&argc, &argv);
10431046
1044 log_init (XSPLASH_LOG); g_message ("xsplash started");
1045
1046 signal (SIGHUP, sig_handler);1047 signal (SIGHUP, sig_handler);
1047 signal (SIGINT, sig_handler);1048 signal (SIGINT, sig_handler);
1048 signal (SIGTERM, sig_handler);1049 signal (SIGTERM, sig_handler);

Subscribers

People subscribed via source and target branches