mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-25 00:10:10 +01:00
This command is being executed in parallel with the westen instance, just like the autolaunch config. I recently came across the kiosk-shell and found out I could start a program exclusive weston instance using it and that opened my eyes to new possibilities. With the desktop-shell, it is necessary to set up quite a few options like the panel launchers, the background image/color and a few other things and that indeed make the configuration file mandatory. With the kiosk-shell all you really care about is the underlying program, the vast majority of the configuration file options are not relevant for that shell. That made me wonder how convenient it would be to forego the configuration file and implement the autolaunch option directly in the weston program. That indeed worked pretty well and that is why I decided to propose this merge request. I think this avenue opens up a different set of uses cases for weston where rather than just have one "big" desktop-shell instance, we could have multiple smaller and potentially specific usage instances. Yes, it can be done with configuration files currently. But what it boils down to is convenience. Maybe this convenience will enable other people to start more than just one weston instance in the future. For instance, to quickly watch an image or opening up a pdf file. This patch was made in a matter that is meant to be consistent with the intuitive way other programs accept a command input, like so : weston <some options> -- some_command option1 ... optionN Further work would be necessary to remove the requirement for the '--' option. To do that, we would need to check if the option is a valid command and not just a mistyped option. There may be some conflict with the current autolaunch implementation. I'm not sure if both 'command' and 'autolaunch' could be used at the same time using this implementation. I think it would be necessary to have a distinct watch and pid variable in the 'wet' context variable for the command to support this. Signed-off-by: Nicholas Niro <blowfist@xroutine.net> |
||
|---|---|---|
| .. | ||
| cms-colord.c | ||
| cms-helper.c | ||
| cms-helper.h | ||
| cms-static.c | ||
| config-helpers.c | ||
| executable.c | ||
| main.c | ||
| meson.build | ||
| screen-share.c | ||
| systemd-notify.c | ||
| text-backend.c | ||
| weston-private.h | ||
| weston-screenshooter.c | ||
| weston.desktop | ||
| weston.h | ||
| xwayland.c | ||