]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[script] check that there are pixel displays
authorScott James Remnant <scott@ubuntu.com>
Thu, 11 Mar 2010 20:25:19 +0000 (20:25 +0000)
committerScott James Remnant <scott@ubuntu.com>
Thu, 18 Mar 2010 19:50:40 +0000 (19:50 +0000)
The script plugin only works on pixel displays, however there wasn't
any check for this, so if a script-based theme was your default
Plymouth would not fallback to using the text plugin instead.

src/plugins/splash/script/plugin.c

index b35994c1a86042222b4156aaa42a0ee73e8dcedd..4930677eb95d0416be04f622ac9f8e14c6715a67 100644 (file)
@@ -348,6 +348,12 @@ show_splash_screen (ply_boot_splash_plugin_t *plugin,
 {
   assert (plugin != NULL);
 
+  if (ply_list_get_length (plugin->displays) == 0)
+    {
+      ply_trace ("no pixel displays");
+      return false;
+    }
+
   plugin->loop = loop;
   plugin->mode = mode;