This fix provides the right tlm configuration for Tizen.
Change-Id: Icf0d132c547029f67d74bea6e98b3b3894dc4843
Signed-off-by: Amarnath Valluri <amarnath.valluri@linux.intel.com>
[Unit]
Description=Tizen Login Manager
After=systemd-user-sessions.service systemd-logind.service
-Requires=systemd-logind.service
+Requires=multi-user.target
[Service]
ExecStart=/usr/bin/tlm
--- /dev/null
+#
+# TLM configuration for Tizen(IVI).
+#
+
+#
+# This group contains top-level settings.
+#
+[General]
+#
+# Name of the account plugin to use to manage(add/remove) guest user accounts
+ACCOUNTS_PLUGIN=gumd
+#
+# Number of seats
+# Default: obtain from systemd
+#NSEATS=2
+#
+# Auto-login default user
+AUTO_LOGIN=1
+#
+# Prepare default/guest users before auto-login
+# Default: off
+# PREPARE_DEFAULT=0
+#
+# PAM service file to use
+PAM_SERVICE=tlm-login
+#
+# PAM service file for default user
+DEFAULT_PAM_SERVICE=tlm-default-login
+#
+# Default (guest) username or template to use
+# %S - seat number
+# %I - seat id string
+# Default: "guest"
+DEFAULT_USER=guest_%S
+#
+# Session command : The command run after successfull login
+SESSION_CMD=/usr/bin/weston-launch
+#
+# Session termination timeout in seconds
+# Default: 10
+#TERMINATE_TIMEOUT=10
+#
+# Setup terminal for session
+# Default: off
+#SETUP_TERMINAL=1
+#
+# Specify session type, needs to be specified for
+# XDG_SESSION_CLASS and XDG_SESSION_TYPE to be set
+SESSION_TYPE=wayland
+#
+#
+# Seat specific settings where the group name is seat id
+[seat0]
+DEFAULT_USER=app
+SETUP_TERMINAL=1
+SETUP_RUNTIME_DIR=1
+VTNR=7
+
Source: %{name}-%{version}.tar.gz
URL: https://github.com/01org/tlm
Source1001: %{name}.manifest
+Source1002: %{name}.conf
Requires(post): /sbin/ldconfig, systemd
Requires(postun): /sbin/ldconfig, systemd
Requires: gumd
%prep
%setup -q -n %{name}-%{version}
cp %{SOURCE1001} .
+cp %{SOURCE1002} .
%build
%if %{debug_build} == 1
-./autogen.sh
%configure --enable-gum --enable-gtk-doc --enable-examples --enable-debug
%else
%configure --enable-gum --enable-examples
install -m 644 data/tlm-login %{buildroot}%{_sysconfdir}/pam.d/
install -m 644 data/tlm-default-login %{buildroot}%{_sysconfdir}/pam.d/
install -m 644 data/tlm-system-login %{buildroot}%{_sysconfdir}/pam.d/
+install -m 644 %{name}.conf %{buildroot}%{_sysconfdir}/
%post
session_type = tlm_config_get_string (priv->config,
TLM_CONFIG_GENERAL,
TLM_CONFIG_GENERAL_SESSION_TYPE);
- if (!tlm_config_has_key (priv->config,
+ if (tlm_config_has_key (priv->config,
TLM_CONFIG_GENERAL,
TLM_CONFIG_GENERAL_NSEATS))
tlm_auth_session_putenv (priv->auth_session,