]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[main] Ignore --hide-splash while deactivated
authorScott James Remnant <scott@ubuntu.com>
Thu, 18 Mar 2010 20:31:12 +0000 (20:31 +0000)
committerRay Strode <rstrode@redhat.com>
Mon, 22 Mar 2010 03:15:06 +0000 (23:15 -0400)
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

index 21ffa0f6359f8e1c3b8196059249f2ab3b2dbefc..339b0c024dd33f6278e6d5923908d69f4c850e1b 100644 (file)
@@ -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;