]>
Commit | Line | Data |
---|---|---|
53e1b683 | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
0ef6f454 LP |
2 | #pragma once |
3 | ||
4b549144 | 4 | #include <stdbool.h> |
00229fe4 | 5 | #include <unistd.h> |
4b549144 ZJS |
6 | |
7 | bool session_id_valid(const char *id); | |
00229fe4 LP |
8 | |
9 | static inline bool logind_running(void) { | |
10 | return access("/run/systemd/seats/", F_OK) >= 0; | |
11 | } |