13 Commits

Author SHA1 Message Date
Aleksei Bavshin
2f1810d1a2 Revert "Remove 'env' from start_session"
This reverts commit 1bc6ddbf67.
2022-08-13 21:48:55 +02:00
Kenny Levinsen
3b7229bacd Minor doc adjustments 2022-08-01 00:47:19 +02:00
muradm
87e9277654 greetd: add terminal switch flag configuration option
This adds "switch" true/false flag in "terminal" section of
configuration file.

Flag controls whether terminal under control should be switched to
when greetd starts. If "switch" set to true, greetd behaves as it
did before, on start vt_setactivate will be called. If "switch" set
to false, and terminal under control by greetd is not currently
active VT, greetd will wait for terminal to become active with
vt_waitactive, which translates to VT_WAITACTIVE ioctl call.

* greetd/src/config/mod.rs: add "switch" flag
* greetd/src/server.rs: add using "switch" flag and waiting for active
* greetd/src/terminal/mod.rs: add vt_waitactive method
* man/greetd-5.scd: mention "switch" configuration option
2021-08-17 00:33:11 +02:00
Kenny Levinsen
d5b7d81342 docs: Fix scdoc syntax for greetd.5 2021-08-02 21:59:15 +02:00
Antoine POPINEAU
5201469e39 Ensure initial session is only run once.
Security concerns were raised regarding the initial session being
executed whenever greetd was restarted (when signing out of one's DE,
when greetd or a greeter restarted or crashed, ...).

This creates a runfile (by default at /run/greetd.run) either when the
initial session is executed or when a greeter is started. Whenever this
file exists, the initial session is ignored (and the configured greeter
is always run).
2021-07-29 19:25:51 +02:00
cinerea0
41c6b5f1d4 Add makefile for man pages 2021-07-29 19:20:32 +02:00
Kenny Levinsen
c0887255db docs: Document new general section 2020-11-16 14:38:30 +01:00
Kenny Levinsen
a2dd171343 man: Clarify initial/default sessions 2020-04-01 18:57:47 +02:00
Kenny Levinsen
91b7e3d58f config: Overhaul config format and implementation
- Split the config system into multiple files in its own folder.
- Use a manual Deserialize implementation for VtSelection.
- Change config format to use sections for better organization.
- Add temporary fallback to parse old format.
2020-04-01 18:57:39 +02:00
Kenny Levinsen
1bc6ddbf67 Remove 'env' from start_session
It was entirely unused, and was complicating a change. It is only
necessary if we need to pass arguments to PAM, as other environment
variables can be loaded by the started command.

This feature can be revisited in the future if it becomes necessary.
2020-03-30 02:16:31 +02:00
Kenny Levinsen
a4d20d4d03 man: Explain the session thing a bit better 2020-03-28 14:02:09 +01:00
Kenny Levinsen
7ed3f878a3 readme: Simplify now we have manpages 2020-03-28 01:02:24 +01:00
Kenny Levinsen
ed748cd380 man: Add initial manpages 2020-03-17 20:53:52 +01:00