]> git.mdlowis.com Git - proto/labwc.git/commit
Add -S|--session <command> option
authorJohan Malm <jgm323@gmail.com>
Sat, 9 Mar 2024 17:12:54 +0000 (17:12 +0000)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Sun, 14 Apr 2024 11:05:25 +0000 (13:05 +0200)
commitc841a25acf9a1973dd1c2c87f09a5d31b11568c8
treecc4bb0c671ad83907225d476c320eeae46878762
parent55138dbe0eefb37a052036500406e45423e3639a
Add -S|--session <command> option

...to start <command> on startup and to terminate the compositor when
<command> exits.

This is useful for session management as it allows the session client (for
example `lxqt-session`) to terminate labwc - be exiting itself.

Under X, xinit starts the server and keeps it alive for as long as
lxqt-session runs. Thus either the session client starts the Window
Manager, or the Window Manager can be launched independently first.  On
Wayland, the Compositor is both Display Server and Window Manager, so the
described session management mechanisms do not work because the Compositor
needs to be running before the session can function.

As some session clients support both X11 and Wayland, this command line
option avoids re-writes and fragmentation.

Co-authored-by: @Consolatis
docs/labwc.1.scd
include/common/spawn.h
include/labwc.h
src/common/spawn.c
src/main.c
src/server.c