Merge lp:~bratsche/xsplash/help-fix into lp:xsplash

Proposed by Cody Russell
Status: Merged
Merged at revision: not available
Proposed branch: lp:~bratsche/xsplash/help-fix
Merge into: lp:xsplash
Diff against target: 37 lines
1 file modified
src/xsplash.c (+10/-10)
To merge this branch: bzr merge lp:~bratsche/xsplash/help-fix
Reviewer Review Type Date Requested Status
Ted Gould (community) Approve
Review via email: mp+14443@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
1=== modified file 'src/xsplash.c'
2--- src/xsplash.c 2009-10-21 13:06:01 +0000
3+++ src/xsplash.c 2009-11-04 22:25:18 +0000
4@@ -984,6 +984,16 @@
5 gchar *log_filename = NULL;
6 struct passwd *pwd;
7
8+ context = g_option_context_new ("xsplash");
9+ g_option_context_add_main_entries (context,
10+ entries,
11+ "xsplash");
12+ g_option_context_add_group (context, gtk_get_option_group (TRUE));
13+ if (!g_option_context_parse (context, &argc, &argv, &error))
14+ {
15+ exit (1);
16+ }
17+
18 pwd = getpwnam (XSPLASH_USER);
19 if (pwd == NULL)
20 {
21@@ -1003,16 +1013,6 @@
22 return 1;
23 }
24
25- context = g_option_context_new ("xsplash");
26- g_option_context_add_main_entries (context,
27- entries,
28- "xsplash");
29- g_option_context_add_group (context, gtk_get_option_group (TRUE));
30- if (!g_option_context_parse (context, &argc, &argv, &error))
31- {
32- exit (1);
33- }
34-
35 log_filename = g_strdup_printf ("/var/log/gdm/xsplash-%s.log", gdm_session ? "gdm" : "user");
36 log_init (log_filename); g_message ("xsplash started");
37 g_free (log_filename);

Subscribers

People subscribed via source and target branches