]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
don't assume vt1 and instead use current tty headless
authorRay Strode <rstrode@redhat.com>
Fri, 8 Aug 2008 20:06:32 +0000 (16:06 -0400)
committerRay Strode <rstrode@redhat.com>
Fri, 8 Aug 2008 20:06:32 +0000 (16:06 -0400)
src/main.c
src/splash-plugins/text/plugin.c

index c80af3ff16d6fb9a1efe27751231428bbf8479c2..a7488a5d878958717945483c60f5de9464c9e17f 100644 (file)
@@ -156,7 +156,11 @@ on_newroot (state_t    *state,
 static void
 on_system_initialized (state_t *state)
 {
-  ply_trace ("system now initialized, opening boot.log");
+  ply_trace ("system now initialized");
+  if (state->session == NULL)
+    return;
+
+  ply_trace ("opening boot log");
   ply_terminal_session_open_log (state->session,
                                  PLYMOUTH_LOG_DIRECTORY "/boot.log");
 }
@@ -199,7 +203,7 @@ on_show_splash (state_t *state)
 
   if (state->window == NULL)
     {
-      state->window = create_window (state, 1);
+      state->window = create_window (state, 0);
       ply_window_take_console (state->window);
     }
 
index d5c011bbc404a322c539f8a84b571d255ec2c442..bf29e9652ccd87c6f77373750a79459c01ac6539 100644 (file)
@@ -136,6 +136,7 @@ stop_animation (ply_boot_splash_plugin_t *plugin)
   assert (plugin->loop != NULL);
 
   ply_text_pulser_stop (plugin->pulser);
+  ply_window_reset_colors (plugin->window);
 }
 
 static void
@@ -273,7 +274,6 @@ hide_splash_screen (ply_boot_splash_plugin_t *plugin,
   ply_window_set_background_color (plugin->window, PLY_WINDOW_COLOR_DEFAULT);
   ply_window_clear_screen (plugin->window);
   ply_window_show_text_cursor (plugin->window);
-  ply_window_reset_colors (plugin->window);
 
   plugin->window = NULL;
 }