2023-12-28 19:38:05 +01:00
# Session manager
2023-12-28 22:19:04 +01:00
To be able to run a graphical enviroment it's necessary to run a seat and session manager. It's recommended to use `seatd` in conjunction with `pam_rundir` for a minimal setup:
2023-12-28 19:38:05 +01:00
```
2024-02-20 15:56:01 +01:00
# apk add seatd-launch pam-rundir
2023-12-28 19:38:05 +01:00
```
Then make sure `pam_rundir` exports `XDG_RUNTIME_DIR` by uncommenting its line in `/etc/pam.d/base-session` :
```
session optional pam_rundir.so
```
2024-02-20 15:56:01 +01:00
`dbus` will also be necessary for a functional desktop enviroment:
```
# apk add cmd:dbus-launch
```
2023-12-28 22:19:04 +01:00
Any graphical session launched has to be prefixed with:
2023-12-28 19:38:05 +01:00
```
2024-02-20 15:56:01 +01:00
$ dbus-launch -- seatd-launch -- < program >
2023-12-28 19:38:05 +01:00
```