]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
main: create time directory if it doesn't exist
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Fri, 17 Jan 2014 20:08:05 +0000 (20:08 +0000)
committerRay Strode <rstrode@redhat.com>
Mon, 20 Jan 2014 19:55:10 +0000 (14:55 -0500)
This makes sure there is a convenient place to write down boot duration.

src/main.c

index 9b0c937711766a04bc74dac29ca57425abe883f2..2ccb8ecaef56c77789994f920734ec62a8c8017a 100644 (file)
@@ -1293,9 +1293,11 @@ on_quit (state_t       *state,
     }
 
   if (state->system_initialized)
-    ply_progress_save_cache (state->progress,
-                             get_cache_file_for_mode (state->mode));
-
+    {
+      ply_create_directory (PLYMOUTH_TIME_DIRECTORY);
+      ply_progress_save_cache (state->progress,
+                               get_cache_file_for_mode (state->mode));
+    }
   state->quit_trigger = quit_trigger;
   state->should_retain_splash = retain_splash;