Skip to content

Support loading backends via shortened backend name

Philipp Zabel requested to merge pH5/weston:backend-abbreviation into main

While the --backend parameter looks like it takes a file name, it really is selected from a list of supported strings that are then funneled through a translation to enum weston_compositor_backend.

Because all backend parameters are of the form "...-backend.so", and writing "--backend=...-backend.so" is boring, allow the "--backend" option to match the backend name without "-backend.so" suffix.

For example, this allows to use --backend=headless instead of --backend=headless-backend.so.

Merge request reports

Loading