Commit graph

2701 commits

Author SHA1 Message Date
Ray Strode
0f0800b751 wip! label-pango: Parse escape sequences in input
This commit starts to sketch out how color escape sequences could
be turned to actual colors in the label.

It's untested.
2023-06-01 13:25:50 -04:00
Ray Strode
8807817ddf wip! Add ply-terminal-buffer object
We're going to need to do at least basic parsing of terminal text
so we can show the console to the user in color when they hit
escape and VTs are disabled.

This commit adds the start of a class to do this basic parsing.

The way it works is the terminal text is inject into the object
and all escape sequences are filtered out. When a color control
sequence is found, the current color is noted, along with which
characters it applies to. A list of the text spans and their
color attributes is then iteratable using a an api.
2023-06-01 13:25:50 -04:00
n3rdopolis
df538944cb script: Use new interfaces in ply-boot-splash for ply-kmsg-reader, and use ply-kmsg-viewer to display the boot messages 2023-05-31 22:45:11 -04:00
n3rdopolis
99d1e8cce3 space-flares: Use new interfaces in ply-boot-splash for ply-kmsg-reader, and use ply-kmsg-viewer to display the boot messages 2023-05-31 22:45:11 -04:00
n3rdopolis
a57c47de71 fade-throbber: Use new interfaces in ply-boot-splash for ply-kmsg-reader, and use ply-console-viewer to display messages 2023-05-31 22:45:11 -04:00
n3rdopolis
7d3061e145 two-step: Use new interfaces in ply-boot-splash for ply-kmsg-reader, and use ply-console-viewer to display messages 2023-05-31 22:45:11 -04:00
n3rdopolis
8605119899 libply-splash-graphics: Introduce new ply-console-viewer control 2023-05-31 22:45:11 -04:00
n3rdopolis
2df6d4a0f2 ply-label: Add ply_label_set_hex_color () based off of ply_pixel_buffer_fill_with_hex_color for configuration of label text colors 2023-05-31 22:45:11 -04:00
n3rdopolis
a5eb1dad63 main: Use new integrations in ply-boot-splash and start ply-kmsg-reader 2023-05-31 22:45:11 -04:00
nerdopolis
4e1d2b8839 Introduce ply-terminal-emulator to handle parsing lines from /dev/console 2023-05-31 22:45:06 -04:00
nerdopolis
4aeb99a43f ply-list: Introduce ply_list_node_set_data 2023-05-31 19:43:49 -04:00
n3rdopolis
8db13df395 Introduce ply-kmsg-reader to read kernel log messages from /dev/kmsg 2023-05-31 19:43:49 -04:00
n3rdopolis
35819ff63e ply-utils: Add ply_utf8_string_get_substring_range () to split UTF-8 strings at a number character, to a specified range 2023-05-31 19:43:49 -04:00
n3rdopolis
1668590503 label-freetype: Support monospaced fonts 2023-05-31 19:43:49 -04:00
nerdopolis
c038e7ff30 label-freetype: Allow the label size to be set when hidden 2023-05-31 19:43:49 -04:00
nerdopolis
545c7aec29 label-freetype: Fix uncrustify 2023-05-31 19:43:49 -04:00
n3rdopolis
3de9d5985c populate-initrd: Ensure a monospace font is in the initrd, along with fonts defined in the theme. 2023-05-31 19:43:49 -04:00
Ray Strode
f6b37f2f7b Merge branch 'fixnumpadreturn' into 'main'
ply-input-device: Handle the "Enter" key on the numpad correctly.

See merge request plymouth/plymouth!236
2023-05-04 12:57:04 +00:00
nerdopolis
676f6c8d07 ply-input-device: Handle the "Enter" key on the numpad correctly. 2023-05-04 08:38:06 -04:00
Ray Strode
f09cfea7ce Merge branch 'tt-x11-periodically-handle-events' into 'main'
x11: periodically handle gtk events

Closes #190

See merge request plymouth/plymouth!230
2023-05-01 17:04:11 +00:00
Timo Teräs
261f305b50 x11: periodically handle gtk events
GTK main loop needs to be called periodically to handle
any idle and timer based events which do not trigger via fd.

fixes #190
2023-05-01 17:02:29 +00:00
Ray Strode
11b1180e3b Merge branch 'boot-log-option' into 'main'
Add new option to set boot log file

See merge request plymouth/plymouth!235
2023-04-29 15:36:16 +00:00
Balló György
5b266eb2f1 Add new option to set boot log file 2023-04-29 15:36:16 +00:00
Ray Strode
e8e193716f Merge branch 'tt-script-hotplug' into 'main'
script: handle display hotplug

Closes #186

See merge request plymouth/plymouth!232
2023-03-22 13:17:37 +00:00
Timo Teräs
1896ea7439 script: handle display hotplug
- Fix script plugin to handle monitor hotplug events

- Expose Plymouth.SetDisplayHotplugFunction to set script callback
  after display hotplug

fixes #186
2023-03-22 13:16:22 +00:00
Ray Strode
0a7aa26777 Merge branch 'tt-fixes' into 'main'
Various fixes to script plugin

See merge request plymouth/plymouth!231
2023-03-22 13:14:52 +00:00
Timo Teräs
167507880d script: fix deletion of sprites after full refresh
The node pointer is reused in the if (data->full_refresh) block
causing the following sprite list walking to fail. Fix this by
moving the sprite list first node getting next to the while loop
where it belongs.
2023-03-22 13:50:03 +02:00
Timo Teräs
51ee78ae1d script: fix script_lib_sprite_draw_area() if sprite_list is empty
The Sprite list may be empty under various conditions, cope with
this.
2023-03-22 13:49:41 +02:00
Timo Teräs
e0799eb77b script: fix reference leak in script_evaluate_set()
script_obj_hash_add_element() takes a new reference, so release
the reference returned by script_evaluate().
2023-03-22 13:49:33 +02:00
Timo Teräs
bfc91248b4 logger: snprintf needs #include <stdio.h> 2023-03-22 13:49:25 +02:00
Ray Strode
7302b49da8 Merge branch 'weblate-plymouth-master' into 'main'
Translations update from Fedora Weblate

See merge request plymouth/plymouth!229
2023-02-22 13:43:27 +00:00
mooo
f549528f2b Translated using Weblate (Lithuanian)
Currently translated at 100.0% (7 of 7 strings)

Co-authored-by: mooo <hazap@hotmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/lt/
Translation: plymouth/main
2023-02-21 23:20:28 +01:00
Olga Smirnova
2a69e4d099 Translated using Weblate (Occidental)
Currently translated at 100.0% (7 of 7 strings)

Added translation using Weblate (Occidental)

Co-authored-by: Olga Smirnova <mistresssilvara@hotmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/ie/
Translation: plymouth/main
2023-02-21 23:20:28 +01:00
n3rdopolis
353276386f Merge branch 'removeunderscores' into 'main'
ply-device-manager: Change XKB_* variables from vconsole.conf to match systemd's

See merge request plymouth/plymouth!228
2023-01-24 21:11:46 +00:00
n3rdopolis
5ffd55e40b ply-device-manager: Change XKB_* variables from vconsole.conf to match systemd's 2023-01-24 12:53:29 -05:00
Ray Strode
c9dab67e61 Merge branch 'keep-it-on-the-dl' into 'main'
meson: Use dependency('dl') instead of cc.find_library('dl')

See merge request plymouth/plymouth!222
2023-01-02 17:35:08 +00:00
Ray Strode
6aefdea9d9 meson: Use dependency('dl') instead of cc.find_library('dl')
meson apparently has some built-in support for libdl, which
depending on libc implementations may or may not be in a separate
library from libc.

This commit changes meson.build to do things the "better" way.
2023-01-02 17:33:53 +00:00
Ray Strode
fcaa382d53 Merge branch 'plymouth-fixleds' into 'main'
ply-input-device: Don't skip setting LEDs on the device that a lock key was pressed on

See merge request plymouth/plymouth!227
2023-01-02 12:27:24 -05:00
n3rdopolis
42d414f9f7 ply-input-device: Ensure that the LED state is updated on the keyboard of which the lock key was pressed on
When a lock modifier is pressed, plymouth goes through some gymnastics
to ensure the LEDs on all attached keyboards are appropriately updated.

Unfortunately, an optimization in the code used to avoid redundant
updates of keyboards that already have the correct state is actually
preventing the initiating keyboard from getting its LEDs turned on.

This is because the initiating keyboard gets its state updated at
key press time before the LED handling code runs, thus making it
seem like that run is redundant.

This commit introduces a new state variable `leds_state_invalid`
on the input device to mark this situation and updates the optimization
check to also check the new variable.

Some contributions by Ray Strode.
2023-01-02 12:20:44 -05:00
Ray Strode
96d050ce96 Merge branch 'more-dynamic-exports-than-marco-polo' into 'main'
meson: Use export_dynmic: true instead of -rdynamic

See merge request plymouth/plymouth!223
2022-12-02 01:25:59 +00:00
Ray Strode
c5a234b5e3 meson: Use export_dynmic: true instead of -rdynamic
It seems like specifying -rdynamic in meson cflags doesn't work
on some systems, but meson has a built in way of doing the same
thing:

export_dynamic: true

This commit switches over to the probably more right way of
achieving a working dlopen(NULL).
2022-12-01 20:14:17 -05:00
Ray Strode
c81af06abd Merge branch 'built-ins-are-dynamic' into 'main'
meson: Build plymouthd with -rdynamic

See merge request plymouth/plymouth!219
2022-12-01 19:31:39 +00:00
Ray Strode
4a53499b95 meson: Build plymouthd with -rdynamic
plymouthd needs to be built with -rdynamic so that the builtin
"details" plugin is loadable.

This commit adds the flag.

Related to #200
2022-12-01 14:30:19 -05:00
Ray Strode
ee222f7fe8 Merge branch 'fix-input-crash' into 'main'
device-manager: Fix crash if XKB keymap could not be created

Closes #199

See merge request plymouth/plymouth!221
2022-12-01 19:26:02 +00:00
Ray Strode
31f6650d64 device-manager: Fix crash if XKB keymap could not be created
This commit fixes a crash introduced in the last commit when an
xkb keymap can't be created.

Closes: https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/199
2022-12-01 14:21:26 -05:00
Ray Strode
1c1c7e67f3 Merge branch 'uhh-actually-fix-tty-fallback' into 'main'
device-manager: Actually fall back to reading from tty if no xkb layout specified

Closes #199

See merge request plymouth/plymouth!220
2022-12-01 18:57:09 +00:00
Ray Strode
56a5e00b17 device-manager: Actually fall back to reading from tty if no xkb layout specified
Commit 7fcfcdf2d63025151a160f7948ee7406f0f16843 tried to fall back to
reading from a tty if no xkb layout was specified, but neglected to
actually check if no xkb layout was specified and force fall back to
reading from a tty in that case.

This commit changes device manager to actually disable reading from
/dev/input if the user doesn't specify a layout to use in vconsole.conf.

Closes https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/199
2022-12-01 13:40:30 -05:00
Ray Strode
e8b301a66d Merge branch 'dont-assume-qwerty-us-layout' into 'main'
device-manager: Fall back to reading from tty if no xkb layout specified

Closes #199

See merge request plymouth/plymouth!218
2022-12-01 15:35:52 +00:00
Ray Strode
f6852a7a82 device-manager: Fall back to reading from tty if no xkb layout specified
At the moment if a user doesn't specify a xkb layout in vconsole.conf we
just fall back to assuming a us qwerty layout.

This isn't really optimal, since it might not match the keyboard.
Furthermore, the tty does have a usable layout, so it makes more sense
to fall back to it.

This commit changes device manager to disable reading from /dev/input
if the user doesn't specify a layout to use in vconsole.conf.

Close https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/199
2022-11-30 09:53:54 -05:00
Ray Strode
a3f9824d9a Merge branch 'fix-check-format' into 'main'
ci: Fix check-format

See merge request plymouth/plymouth!217
2022-11-29 19:57:19 +00:00