summaryrefslogtreecommitdiff
path: root/src/basic/login-util.h
blob: e1e62e12b7aa67140e2f714620495a448e3bf523 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once

#include <stdbool.h>
#include <unistd.h>

bool session_id_valid(const char *id);

static inline bool logind_running(void) {
        return access("/run/systemd/seats/", F_OK) >= 0;
}