]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
check for plugin failure in the boot splash test program,
authorRay Strode <rstrode@redhat.com>
Wed, 6 Jun 2007 22:23:24 +0000 (18:23 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 6 Jun 2007 22:23:24 +0000 (18:23 -0400)
change the location we look for the plugin

src/ply-boot-splash.c

index 9a47f3330e379864d09af4b9fc00e7f4266243e2..f7e9cf8ff0c918ab6d7711ae667806deb102ef81 100644 (file)
@@ -155,7 +155,8 @@ ply_boot_splash_show (ply_boot_splash_t *splash)
 
   splash->plugin_interface->attach_to_event_loop (splash->plugin,
                                                   splash->loop);
-  splash->plugin_interface->show_splash_screen (splash->plugin);
+  if (!splash->plugin_interface->show_splash_screen (splash->plugin))
+    return false;
 
   splash->is_shown = true;
   return true;
@@ -230,7 +231,7 @@ main (int    argc,
 
   loop = ply_event_loop_new ();
 
-  splash = ply_boot_splash_new ("./fedora-fade-in.so");
+  splash = ply_boot_splash_new ("../splash-plugins/.libs/fedora-fade-in.so");
   ply_boot_splash_attach_to_event_loop (splash, loop);
 
   if (!ply_boot_splash_show (splash))