mirror of
https://github.com/labwc/labwc.git
synced 2026-05-03 06:47:22 -04:00
docs: document labwc-session.target integration
Describe the shipped labwc-session.target in labwc(1) SESSION MANAGEMENT and add commented-out systemctl start/stop lines to the example autostart and shutdown files. Users on systemd-based distros can uncomment these to pull in graphical-session.target when labwc starts and tear it down cleanly on exit, without labwc itself mandating any specific init system.
This commit is contained in:
parent
d8119cb354
commit
af277b09ed
3 changed files with 35 additions and 0 deletions
|
|
@ -118,6 +118,25 @@ this is accomplished by setting the session variables to empty strings. For
|
|||
systemd, the command `systemctl --user unset-environment` will be invoked to
|
||||
actually remove the variables from the activation environment.
|
||||
|
||||
A systemd user unit named `labwc-session.target` is also shipped alongside
|
||||
the compositor for users who want to integrate labwc with systemd. It binds
|
||||
to the standard `graphical-session.target`, so systemd user services can
|
||||
start and stop in sync with the labwc session when they declare a WantedBy
|
||||
or PartOf relationship to that target. Labwc does not activate the target
|
||||
itself; users opt in by adding lines like the following to their
|
||||
*autostart* and *shutdown* files:
|
||||
|
||||
```
|
||||
systemctl --user --no-block start labwc-session.target
|
||||
systemctl --user stop graphical-session.target
|
||||
```
|
||||
|
||||
The example *autostart* and *shutdown* files shipped with labwc include
|
||||
these commented out. To have a user service automatically started with
|
||||
the session, enable it so the corresponding symlink under the
|
||||
graphical-session.target.wants directory exists, for example by running
|
||||
"systemctl --user enable dms.service".
|
||||
|
||||
# ENVIRONMENT VARIABLES
|
||||
|
||||
Set the environment variables listed below to enable specific debug options.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue