[PATCH 06/20] [main] Ignore --hide-splash while deactivated

Scott James Remnant scott at ubuntu.com
Thu Mar 18 13:31:12 PDT 2010


Since we ignore --show-splash, it makes no sense to process
--hide-splash either; in theory this does nothing already because
we won't have a boot_splash in our state - but that changes with
future patches and it's worth being safe.
---
 src/main.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/main.c b/src/main.c
index 9be2e82..628500a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -667,6 +667,9 @@ dump_details_and_quit_splash (state_t *state)
 static void
 on_hide_splash (state_t *state)
 {
+  if (state->is_inactive)
+    return;
+
   if (state->boot_splash == NULL)
     return;
 
-- 
1.7.0



More information about the plymouth mailing list