Compare commits

...

4 Commits

Author SHA1 Message Date
Konecho
c4b4119cd2
Merge 004ff91e0b into 4ca29169e5 2024-06-07 18:07:52 +08:00
Steven Braun
4ca29169e5 Add notice on possible missing cache dir and link to cache instr.
Some distributions (e.g. Arch, Fedora, OpenSUSE Tumbleweed) happen to be missing
the setup of /var/cache/tuigreet which leads to the --remember* options not
working.
2024-06-06 07:33:33 +02:00
Konecho
004ff91e0b
Update tuigreet.ftl 2024-05-26 03:36:47 +00:00
Konecho
dd86eca1dc
Create tuigreet.ftl 2024-05-21 13:33:21 +00:00
2 changed files with 31 additions and 1 deletions

View File

@ -69,7 +69,7 @@ The default configuration tends to be as minimal as possible, visually speaking,
The initial prompt container will be 80 column wide. You may change this with `--width` in case you need more space (for example, to account for large PAM challenge messages). Please refer to usage information (`--help`) for more customization options. Various padding settings are available through the `*-padding` options.
You can instruct `tuigreet` to remember the last username that successfully opened a session with the `--remember` option (that way, the username field will be pre-filled). Similarly, the command and session configuration can be retained between runs with the `--remember-session` option (when using this, the `--cmd` value is overridden by manual selections). You can also remember the selected session per user with the `--remember-user-session` flag. In this case, the selected session will only be saved on successful authentication.
You can instruct `tuigreet` to remember the last username that successfully opened a session with the `--remember` option (that way, the username field will be pre-filled). Similarly, the command and session configuration can be retained between runs with the `--remember-session` option (when using this, the `--cmd` value is overridden by manual selections). You can also remember the selected session per user with the `--remember-user-session` flag. In this case, the selected session will only be saved on successful authentication. Check the [cache instructions](#cache-instructions) if `/var/cache/tuigreet` doesn't exist after installing tuigreet.
You may change the command that will be executed after opening a session by hitting `F2` and amending the command. Alternatively, you can list the system-declared sessions (or custom ones) by hitting `F3`. Power options are available through `F12`.
@ -85,6 +85,7 @@ $ cargo build --release
# mv target/release/tuigreet /usr/local/bin/tuigreet
```
<a id="cache-instructions"></a>
Cache directory must be created for `--remember*` features to work. The directory must be owned by the user running the greeter.
```

View File

@ -0,0 +1,29 @@
title_authenticate = 认证到主机 {$hostname}
title_command = 更改会话命令
title_power = 电源选项
title_session = 更改会话
title_users = 选择用户
action_reset = 重置
action_command = 命令
action_session = 会话
action_power = 电源
date = %x, %A - %H:%M
select_user = 回车键以选择用户或直接输入用户名...
username = 用户名:
password = 密码:
wait = 请稍候...
failed = 认证失败,请重试
new_command = 新命令:
shutdown = 关机
reboot = 重启
command_exited = 退出代码
command_failed = 命令执行失败
status_command = CMD
status_caps = 大小写锁定