From 19fe37f9d36b97e773084627606bc0eed7bbf1ed Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Fri, 10 Jan 2014 13:26:16 -0500 Subject: [PATCH] main: load default splash settings at start up There's no reason to load them lazily, and when we extend the functions to add a theme delay setting, we're going to want to have the settings available as early as possible. --- src/main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index 4c0f8436..91dfe209 100644 --- a/src/main.c +++ b/src/main.c @@ -406,14 +406,12 @@ show_default_splash (state_t *state) return; ply_trace ("Showing splash screen"); - find_override_splash (state); if (state->override_splash_path != NULL) { ply_trace ("Trying override splash at '%s'", state->override_splash_path); state->boot_splash = show_theme (state, state->override_splash_path); } - find_system_default_splash (state); if (state->boot_splash == NULL && state->system_default_splash_path != NULL) { @@ -421,7 +419,6 @@ show_default_splash (state_t *state) state->boot_splash = show_theme (state, state->system_default_splash_path); } - find_distribution_default_splash (state); if (state->boot_splash == NULL && state->distribution_default_splash_path != NULL) { @@ -2227,6 +2224,10 @@ main (int argc, return EX_UNAVAILABLE; } + find_override_splash (&state); + find_system_default_splash (&state); + find_distribution_default_splash (&state); + if (command_line_has_argument (state.kernel_command_line, "plymouth.ignore-serial-consoles")) device_manager_flags |= PLY_DEVICE_MANAGER_FLAGS_IGNORE_SERIAL_CONSOLES;