]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
hide /var/log behind a define
authorRay Strode <rstrode@redhat.com>
Sun, 22 Jun 2008 04:48:47 +0000 (00:48 -0400)
committerRay Strode <rstrode@redhat.com>
Sun, 22 Jun 2008 04:48:47 +0000 (00:48 -0400)
src/Makefile.am
src/main.c

index 8a0ffbfc6d7aa64b77a9459567555d657d96dcca..8b6ca5b5599fad983f9baae867dbed53f7f2d88a 100644 (file)
@@ -3,6 +3,7 @@ INCLUDES = -I$(top_srcdir)                                                    \
            -I$(srcdir)/libply                                                 \
            -I$(srcdir)/libplybootsplash                                       \
            -I$(srcdir)                                                        \
+           -DPLYMOUTH_LOG_DIRECTORY=\"$(localstatedir)/log\"                  \
            -DPLYMOUTH_LOGO_FILE=\"$(logofile)\"
 
 plymouthdbindir = $(libexecdir)/plymouth
index b53412931305083c5669034287344dc7960ce71e..f554ce05af8c045e528f2c6c107402e990d9a660 100644 (file)
@@ -120,7 +120,7 @@ on_system_initialized (state_t *state)
 {
   ply_trace ("system now initialized, opening boot.log");
   ply_terminal_session_open_log (state->session,
-                                 "/var/log/boot.log");
+                                 PLYMOUTH_LOG_DIRECTORY "/boot.log");
 }
 
 static void