Files
sisungo 7b525ec57d initial commit
Signed-off-by: sisungo <[email protected]>
2026-10-26 05:28:00 +00:00

93 lines
2.3 KiB
Markdown

# SemiOS Login Manager
SemiOS Login Manager is the display manager developed by the SemiOS project. It
features:
- Minimal dependency (via `egui-rs` and `cage`)
- Pretty-by-default design
The name contains "SemiOS" though, it runs well on any Linux distribution
(BSD is also supported, but not tested).
# Build & Install
SemiOS Login Manager depends on:
- *rustc (builddep)*
- *cargo (builddep)*
- cage
Note that dynamic linking is required. On musl targets, you must turn off the
`crt-static` target feature to make this work.
## For End User
To start building the project, run:
```
make
```
It calls `cargo`, and sets up necessary feature flags, depending on the detected
environment.
To install the project, run:
```
make install
```
You can specify `PREFIX=`, `DESTDIR=`, `BINDIR=` and `LIBEXECDIR=` to customize
the installation directory.
This command also detects `systemd` or `airup`, and installs service files
suitable to your init system.
After installation, you would better create a privilege seperation user for
best security. It may be named `_loginmanager`, `_displaymanager` or
`semios-login-manager`. If none of the names mentioned above exists, `root` is
used.
## For Development
For development, you may care the feature flags. Currently, we have these feature
flags:
- `backend_unix_passwd`: Enable the Unix passwd backend (based on libc functions).
## For SemiOS Users
It's recommended to install it via Packie, or build it via SemiOS Ports.
# Configuration
The configuration file, in JSON format, may be located at:
- `/etc/semios-login-manager.json`
- `/var/config/semios-login-manager.json`
- `/etc/semios-login-manager/slm.json`
- `/var/config/semios-login-manager/slm.json`
Note that the file may be edited automatically.
A full config file looks like (ignore comments -- invalid in JSON):
```json
{
"cage": null, // Path to Cage executable
"wallpaper": "/usr/share/wallpaper/1.png", // Path to wallpaper file
"default_user": "anon", // Default login user
"fortune": [
"disable",
"en_US.UTF-8$Shall I compare thee to a summer day?",
"zh_CN.UTF-8$天地玄黄,宇宙鸿荒。",
], // Fortunes
}
```
We are making effort to make SLM more customizable.
# License
The SemiOS Login Manager is licensed under the MIT license.