From: Scott James Remnant Date: Thu, 18 Mar 2010 04:48:03 +0000 (+0000) Subject: [frame-buffer] don't run on non-virtual terminals X-Git-Tag: 0.8.0~53^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59eaa4db5986b028159af491e1f939d075d2872b;p=thirdparty%2Fplymouth.git [frame-buffer] don't run on non-virtual terminals We only need support DRM on virtual terminals, those that are not such as serial consoles, can be trivially skipped. --- diff --git a/src/plugins/renderers/frame-buffer/plugin.c b/src/plugins/renderers/frame-buffer/plugin.c index 62ce3da1..570b21a9 100644 --- a/src/plugins/renderers/frame-buffer/plugin.c +++ b/src/plugins/renderers/frame-buffer/plugin.c @@ -349,6 +349,13 @@ open_device (ply_renderer_backend_t *backend) return false; } + if (!ply_terminal_is_vt (backend->terminal)) + { + ply_trace ("terminal is not a VT"); + ply_terminal_close (backend->terminal); + return false; + } + ply_terminal_watch_for_active_vt_change (backend->terminal, (ply_terminal_active_vt_changed_handler_t) on_active_vt_changed,