diff options
author | Ray Strode <rstrode@redhat.com> | 2022-11-28 19:32:43 -0500 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2022-11-28 19:33:29 -0500 |
commit | e58891856c07dd834c4f16d8c6f1874595babb48 (patch) | |
tree | 2c6f0cccf4025da65557cbe3743829dfe86f80f1 | |
parent | 8cb20287b02716c2348b8d57812657001a7801e1 (diff) |
device-manager: Make sure local console terminal is open
We need to make sure the local console terminal is open so that
when we check later if it's a vt or not we get a valid answer.
This commit adds the open call.
Closes: https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/196
-rw-r--r-- | src/libply-splash-core/ply-device-manager.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libply-splash-core/ply-device-manager.c b/src/libply-splash-core/ply-device-manager.c index 3e02326a..4aa2796d 100644 --- a/src/libply-splash-core/ply-device-manager.c +++ b/src/libply-splash-core/ply-device-manager.c @@ -872,6 +872,9 @@ ply_device_manager_new (const char *default_tty, manager->terminals = ply_hashtable_new (ply_hashtable_string_hash, ply_hashtable_string_compare); manager->renderers = ply_hashtable_new (ply_hashtable_string_hash, ply_hashtable_string_compare); manager->local_console_terminal = ply_terminal_new (default_tty, manager->keymap); + + ply_terminal_open (manager->local_console_terminal); + manager->input_devices = ply_hashtable_new (ply_hashtable_string_hash, ply_hashtable_string_compare); manager->keyboards = ply_list_new (); manager->text_displays = ply_list_new (); |