tizen: release 0.0.5-1 31/27531/1 accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi tizen_3.0.2014.q3_common tizen_3.0.m14.3_ivi accepted/tizen/common/20140916.140224 accepted/tizen/ivi/20140919.152827 submit/tizen/20140915.121936 tizen_3.0.2014.q3_common_release tizen_3.0.m14.3_ivi_release
authorImran Zaman <imran.zaman@intel.com>
Mon, 15 Sep 2014 12:15:16 +0000 (15:15 +0300)
committerImran Zaman <imran.zaman@intel.com>
Mon, 15 Sep 2014 12:15:23 +0000 (15:15 +0300)
Change-Id: I67aa537ee0206dba59a3c9168f96a84dc48226ff
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
13 files changed:
configure
configure.ac
data/tlm.conf.in
dists/debian/changelog
dists/rpm/tizen/packaging/tlm.changes
dists/rpm/tizen/packaging/tlm.spec
dists/rpm/tlm-suse.spec
packaging/tlm.changes
packaging/tlm.spec
src/common/Makefile.am
src/common/Makefile.in
src/common/tlm-config-seat.h [new file with mode: 0644]
src/daemon/tlm-manager.c

index 81224e3..71a6e66 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for tlm 0.0.4.
+# Generated by GNU Autoconf 2.69 for tlm 0.0.5.
 #
 #
 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -587,8 +587,8 @@ MAKEFLAGS=
 # Identity of this package.
 PACKAGE_NAME='tlm'
 PACKAGE_TARNAME='tlm'
-PACKAGE_VERSION='0.0.4'
-PACKAGE_STRING='tlm 0.0.4'
+PACKAGE_VERSION='0.0.5'
+PACKAGE_STRING='tlm 0.0.5'
 PACKAGE_BUGREPORT=''
 PACKAGE_URL=''
 
@@ -1383,7 +1383,7 @@ if test "$ac_init_help" = "long"; then
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures tlm 0.0.4 to adapt to many kinds of systems.
+\`configure' configures tlm 0.0.5 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1453,7 +1453,7 @@ fi
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of tlm 0.0.4:";;
+     short | recursive ) echo "Configuration of tlm 0.0.5:";;
    esac
   cat <<\_ACEOF
 
@@ -1599,7 +1599,7 @@ fi
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-tlm configure 0.0.4
+tlm configure 0.0.5
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1964,7 +1964,7 @@ cat >config.log <<_ACEOF
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by tlm $as_me 0.0.4, which was
+It was created by tlm $as_me 0.0.5, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -2832,7 +2832,7 @@ fi
 
 # Define the identity of the package.
  PACKAGE='tlm'
- VERSION='0.0.4'
+ VERSION='0.0.5'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -14250,7 +14250,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by tlm $as_me 0.0.4, which was
+This file was extended by tlm $as_me 0.0.5, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -14316,7 +14316,7 @@ _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-tlm config.status 0.0.4
+tlm config.status 0.0.5
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
index efab755..43ad664 100644 (file)
@@ -2,7 +2,7 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ([2.68])
-AC_INIT([tlm], [0.0.4], [])
+AC_INIT([tlm], [0.0.5], [])
 AC_CONFIG_SRCDIR([src/daemon/tlm-main.c])
 AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_MACRO_DIR([m4])
index 157b249..a012856 100644 (file)
@@ -16,7 +16,7 @@ AUTO_LOGIN=1
 #
 # Prepare default/guest users before auto-login
 # Default: off
-PREPARE_DEFAULT=1
+PREPARE_DEFAULT=1
 #
 # PAM service file to use
 PAM_SERVICE=tlm-login
@@ -28,7 +28,7 @@ PAM_DEFAULT_SERVICE=tlm-default-login
 #  %S - seat number
 #  %I - seat id string
 # Default: "guest"
-#DEFAULT_USER=guest
+DEFAULT_USER=app
 #
 # Session command : The command run after successfull login
 # Default: $SHELL
@@ -49,7 +49,7 @@ PAM_DEFAULT_SERVICE=tlm-default-login
 #
 # Do not launch anything, let systemd handle it through PAM
 # Default: off
-#PAUSE_SESSION=1
+PAUSE_SESSION=1
 #
 #
 # Seat specific settings where the group name is seat id
index 11ace0d..5ba7780 100644 (file)
@@ -1,3 +1,9 @@
+tlm (0.0.5-1) unstable; urgency=low
+
+  * Updated tizen configuration file for tizen
+
+ -- Imran Zaman <imran.zaman@intel.com>  Mon, 15 Sep 2014 15:02:53 +0200
+
 tlm (0.0.4-1) unstable; urgency=low
 
   * Added separate PAM configuration file for default user
index aa182c6..9a54f3b 100644 (file)
@@ -1,3 +1,6 @@
+* Mon Sep 15 2014 Imran Zaman <imran.zaman@intel.com>
+- Updated tizen configuration file for tizen
+
 * Wed Sep 03 2014 Jussi Laako <jussi.laako@linux.intel.com>
 - Added separate PAM configuration file for default user
 
index 1290b2b..c7471a1 100644 (file)
@@ -4,7 +4,7 @@
 
 Name: tlm
 Summary: Login manager for Tizen
-Version: 0.0.4
+Version: 0.0.5
 Release: 1
 Group: System/Service
 License: LGPL-2.1+
index 52e2481..9ac7e82 100644 (file)
@@ -4,8 +4,8 @@
 
 Name: tlm
 Summary: Login manager for Tizen
-Version: 0.0.3
-Release: 2
+Version: 0.0.5
+Release: 1
 Group: System/Daemons
 License: LGPL-2.1+
 Source: %{name}-%{version}.tar.gz
@@ -99,6 +99,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Mon Sep 15 2014 Imran Zaman <imran.zaman@intel.com>
+- Updated tizen configuration file for tizen
+
 * Wed Sep 03 2014 Jussi Laako <jussi.laako@linux.intel.com>
 - Added separate PAM configuration file for default user
 
index aa182c6..9a54f3b 100644 (file)
@@ -1,3 +1,6 @@
+* Mon Sep 15 2014 Imran Zaman <imran.zaman@intel.com>
+- Updated tizen configuration file for tizen
+
 * Wed Sep 03 2014 Jussi Laako <jussi.laako@linux.intel.com>
 - Added separate PAM configuration file for default user
 
index 1290b2b..c7471a1 100644 (file)
@@ -4,7 +4,7 @@
 
 Name: tlm
 Summary: Login manager for Tizen
-Version: 0.0.4
+Version: 0.0.5
 Release: 1
 Group: System/Service
 License: LGPL-2.1+
index b35f3c9..465b5e6 100644 (file)
@@ -21,6 +21,7 @@ libtlm_common_la_SOURCES = \
        tlm-config.h \
        tlm-config.c \
        tlm-config-general.h \
+       tlm-config-seat.h \
        tlm-pipe-stream.c \
        tlm-pipe-stream.h \
        tlm-utils.h \
index 7dec8a1..518d5d7 100644 (file)
@@ -410,6 +410,7 @@ libtlm_common_la_SOURCES = \
        tlm-config.h \
        tlm-config.c \
        tlm-config-general.h \
+       tlm-config-seat.h \
        tlm-pipe-stream.c \
        tlm-pipe-stream.h \
        tlm-utils.h \
diff --git a/src/common/tlm-config-seat.h b/src/common/tlm-config-seat.h
new file mode 100644 (file)
index 0000000..88f991c
--- /dev/null
@@ -0,0 +1,46 @@
+/* vi: set et sw=4 ts=4 cino=t0,(0: */
+/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of tlm
+ *
+ * Copyright (C) 2014 Intel Corporation.
+ *
+ * Contact: Jussi Laako <jussi.laako@linux.intel.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ */
+
+#ifndef __TLM_CONFIG_SEAT_H_
+#define __TLM_CONFIG_SEAT_H_
+
+/**
+ * SECTION:tlm-config-seat
+ * @title: Seat configuration
+ * @short_description: Seat specific configuration
+ *
+ * Configuration items that are specific to a seat are defined here. Items that
+ * may be either global or per-seat are defined in #tlm-config-general.
+ */
+
+/**
+ * TLM_CONFIG_SEAT_ACTIVE:
+ *
+ * Value specifying whether a seat is to be used or not.
+ * Default value: 1
+ */
+#define TLM_CONFIG_SEAT_ACTIVE          "ACTIVE"
+
+#endif /* __TLM_CONFIG_SEAT_H_ */
index 914f9e4..191bce3 100644 (file)
@@ -31,6 +31,7 @@
 #include "tlm-auth-plugin.h"
 #include "tlm-config.h"
 #include "tlm-config-general.h"
+#include "tlm-config-seat.h"
 #include "tlm-dbus-observer.h"
 #include "tlm-utils.h"
 #include "config.h"
@@ -453,6 +454,12 @@ _add_seat (TlmManager *manager, const gchar *seat_id, const gchar *seat_path)
 
     TlmManagerPrivate *priv = TLM_MANAGER_PRIV (manager);
 
+    if (!tlm_config_get_boolean (priv->config,
+                                 seat_id,
+                                 TLM_CONFIG_SEAT_ACTIVE,
+                                 TRUE))
+        return;
+
     TlmSeat *seat = tlm_seat_new (priv->config,
                                   seat_id,
                                   seat_path);