1 /* vi: set et sw=4 ts=4 cino=t0,(0: */
2 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
4 * This file is part of tlm
6 * Copyright (C) 2013-2014 Intel Corporation.
8 * Contact: Imran Zaman <imran.zaman@intel.com>
9 * Amarnath Valluri <amarnath.valluri@linux.intel.com>
11 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public
13 * License as published by the Free Software Foundation; either
14 * version 2.1 of the License, or (at your option) any later version.
16 * This library is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Lesser General Public License for more details.
21 * You should have received a copy of the GNU Lesser General Public
22 * License along with this library; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
27 #ifndef __TLM_CONFIG_GENERAL_H_
28 #define __TLM_CONFIG_GENERAL_H_
31 * SECTION:tlm-config-general
32 * @title: General configuration
33 * @short_description: tlm general configuration keys
35 * General configuration keys are defined below. See #TlmConfig for how to use
42 * A prefix for general keys. Should be used only when defining new keys.
44 #define TLM_CONFIG_GENERAL "General"
47 * TLM_CONFIG_GENERAL_ACCOUNTS_PLUGIN:
49 * Accounts plugin (implementation of #TlmAccountPlugin) to use.
50 * Default value: "default". If Tlm has been configured with --enable-debug, the
51 * value can be overriden with TLM_ACCOUNT_PLUGIN environment variable.
53 #define TLM_CONFIG_GENERAL_ACCOUNTS_PLUGIN "ACCOUNTS_PLUGIN"
56 * TLM_CONFIG_GENERAL_SESSION_CMD:
58 * Session command line: the command run after successfull login. If the value
59 * is not defined in the config file, user's shell from /etc/passwd is used,
60 * and if that is not defined, the fallback is "systemd --user"
62 #define TLM_CONFIG_GENERAL_SESSION_CMD "SESSION_CMD"
65 * TLM_CONFIG_GENERAL_SESSION_PATH:
67 * Default value for PATH environment variable in user's session. If not set,
68 * "/usr/local/bin:/usr/bin:/bin" is used.
70 #define TLM_CONFIG_GENERAL_SESSION_PATH "SESSION_PATH"
73 * TLM_CONFIG_GENERAL_DATA_DIRS:
75 * Default value for XDG_DATA_DIRS environment variable. If not set,
76 * "/usr/share:/usr/local/share" is used.
78 #define TLM_CONFIG_GENERAL_DATA_DIRS "XDG_DATA_DIRS"
81 * TLM_CONFIG_GENERAL_AUTO_LOGIN
83 * Autologin to default user : TRUE/FALSE. TRUE if value is not set
85 * Whether to automatically log in the default user on startup and when another
86 * user session has been terminated.
89 #define TLM_CONFIG_GENERAL_AUTO_LOGIN "AUTO_LOGIN"
92 * TLM_CONFIG_GENERAL_PREPARE_DEFAULT
94 * Prepare default user before auto-login: TRUE/FALSE (FALSE if value not set).
96 * If set to TRUE, methods of #TlmAccountPlugin are used to set up the default
97 * user's account before auto-login.
99 #define TLM_CONFIG_GENERAL_PREPARE_DEFAULT "PREPARE_DEFAULT"
102 * TLM_CONFIG_GENERAL_PAM_SERVICE:
104 * PAM service file to use for authentication and session setup. Default value: "tlm-login".
106 #define TLM_CONFIG_GENERAL_PAM_SERVICE "PAM_SERVICE"
109 * TLM_CONFIG_GENERAL_DEFAULT_PAM_SERVICE:
111 * PAM service file to use for default user authentication and session setup. Default value: "tlm-default-login".
113 #define TLM_CONFIG_GENERAL_DEFAULT_PAM_SERVICE "DEFAULT_PAM_SERVICE"
116 * TLM_CONFIG_GENERAL_DEFAULT_USER:
118 * Default username for autologin. Default value: "guest".
120 * The value can include: \%S - seat number, \%I - seat id string.
122 #define TLM_CONFIG_GENERAL_DEFAULT_USER "DEFAULT_USER"
125 * TLM_CONFIG_GENERAL_SETUP_TERMINAL
127 * Setup terminal while creating session : TRUE/FALSE. (TRUE if not set).
129 * Whether to connect the standard input, output and error streams for a newly
130 * created session to the terminal device.
132 #define TLM_CONFIG_GENERAL_SETUP_TERMINAL "SETUP_TERMINAL"
135 * TLM_CONFIG_GENERAL_TERMINATE_TIMEOUT
137 * Timeout for session termination in seconds. Default value: 10
139 * Specifies timeout between sending different termination signals in case
140 * the previous signal wasn't obeyed.
142 #define TLM_CONFIG_GENERAL_TERMINATE_TIMEOUT "TERMINATE_TIMEOUT"
145 * TLM_CONFIG_GENERAL_X11_SESSION
147 * Use X11 style sessions. Default value: 0
149 * Switches session handling style to X11 sessions where display manager
150 * is terminated and Xserver restarted for each session.
152 #define TLM_CONFIG_GENERAL_X11_SESSION "X11_SESSION"
155 * TLM_CONFIG_GENERAL_PAUSE_SESSION
157 * Do not actually launch anything after creating session, let systemd
158 * handle it through PAM.
160 #define TLM_CONFIG_GENERAL_PAUSE_SESSION "PAUSE_SESSION"
162 #endif /* __TLM_GENERAL_CONFIG_H_ */