diff options
Diffstat (limited to 'deskutils/gnome-utils/files/patch-logview_logview.c')
-rw-r--r-- | deskutils/gnome-utils/files/patch-logview_logview.c | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/deskutils/gnome-utils/files/patch-logview_logview.c b/deskutils/gnome-utils/files/patch-logview_logview.c index 942ed8a02..4ac243d34 100644 --- a/deskutils/gnome-utils/files/patch-logview_logview.c +++ b/deskutils/gnome-utils/files/patch-logview_logview.c @@ -1,37 +1,29 @@ ---- logview/logview.c.orig Fri May 7 21:47:59 2004 -+++ logview/logview.c Wed Aug 4 18:40:24 2004 -@@ -781,7 +781,7 @@ +--- logview/logview.c.orig Tue Nov 30 00:29:01 2004 ++++ logview/logview.c Tue Nov 30 00:30:44 2004 +@@ -656,7 +656,7 @@ if ( ! found) { g_snprintf (full_name, sizeof (full_name), - "%s/share/gnome-system-log/gnome-system-log-regexp.db", LOGVIEWINSTALLPREFIX); -+ "%s/gnome-system-log/gnome-system-log-regexp.db", DATADIR); ++ "%s/gnome-system-log/gnome-system-log-regexp.db", LOGVIEWINSTALLPREFIX); if (access (full_name, R_OK) == 0) { found = TRUE; g_free (cfg->regexp_db_path); -@@ -804,7 +804,7 @@ +@@ -678,7 +678,7 @@ if ( ! found) { g_snprintf (full_name, sizeof (full_name), - "%s/share/gnome-system-log/gnome-system-log-descript.db", LOGVIEWINSTALLPREFIX); -+ "%s/gnome-system-log/gnome-system-log-descript.db", DATADIR); ++ "%s/gnome-system-log/gnome-system-log-descript.db", LOGVIEWINSTALLPREFIX); if (access (full_name, R_OK) == 0) { found = TRUE; g_free (cfg->descript_db_path); -@@ -838,7 +838,7 @@ +@@ -709,7 +709,7 @@ if ( ! found) { g_snprintf (full_name, sizeof (full_name), - "%s/share/gnome-system-log/gnome-system-log-actions.db", LOGVIEWINSTALLPREFIX); -+ "%s/gnome-system-log/gnome-system-log-actions.db", DATADIR); ++ "%s/gnome-system-log/gnome-system-log-actions.db", LOGVIEWINSTALLPREFIX); if (access (full_name, R_OK) == 0) { found = TRUE; g_free (cfg->action_db_path); -@@ -922,6 +922,7 @@ - /* remove trailing newline */ - if (logfile[strlen(logfile)-1] == '\n') - logfile[strlen(logfile)-1] = '\0'; -+ if (strcmp (logfile, "/dev/console") == 0) continue; - fprintf(stderr, "Found a logfile: (%s)\n", logfile); - return logfile; - } |