Blob Blame History Raw
Name:           lightdm-autologin-greeter
Version:        1.0
Release:        5%{?dist}
Summary:        Autologin greeter using LightDM

License:        MIT
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz

Source1:        %{name}.README.distro

%if 0%{?fedora} || 0%{?rhel} >= 8
BuildRequires:  python3-devel
Requires:       python3-gobject
BuildRequires:  python2-devel
Requires:       pygobject3
Requires:       lightdm-gobject

# LightDM is required for this to be useful
Requires:       lightdm

# All LightDM greeters provide this
Provides:       lightdm-greeter = 1.2

BuildArch:      noarch

%{name} is a minimal greeter for LightDM that has
the same autologin behavior as nodm, but being based on LightDM,
it stays on top of modern display manager requirements.

The difference between LightDM's built-in autologin and this greeter,
is the behavior in case of 0-seconds autologin delay. When LightDM
automatically logs in with no delay, upon logout it will show the
login window again. The intent is that if the default user logged out,
they probably intend to log in again as a different user.

In the case of managing a kiosk-like setup, if the X session quits, then
the desired behavior is to just start it again.

LightDM with an autologin timeout of 1 or more seconds would work,
but one sees the login dialog window appear and disappear
on-screen at each system startup.

With this greeter, the X session starts right away, and is restarted
if it quits, without any flicker of a login dialog box.

If one is not setting up a kiosk-like setup, it's very likely that the
default autologin behavior of LightDM is the way to go, and that this
greeter is not needed.

# Install Source1 into source tree
cp %{S:1} README.distro

# Nothing to build

mkdir -p %{buildroot}%{_prefix}

cp -a bin %{buildroot}%{_prefix}
cp -a share %{buildroot}%{_prefix}

%if 0%{?fedora} || 0%{?rhel} >= 8
sed -i "s:#!/usr/bin/python:#!%{__python3}:" %{buildroot}%{_bindir}/%{name}
sed -i "s:#!/usr/bin/python:#!%{__python2}:" %{buildroot}%{_bindir}/%{name}

%license LICENSE
%doc README.distro

* Tue Aug 22 2017 Neal Gompa <> - 1.0-5
- Revert removing lightdm-greeter Provides

* Mon Aug 21 2017 Leigh Scott <> - 1.0-4
- Remove provides lightdm-greeter as it is matched first on netinstall (rhbz #1481192)

* Wed Jul 26 2017 Fedora Release Engineering <> - 1.0-3
- Rebuilt for

* Tue May 23 2017 Neal Gompa <> - 1.0-2
- Rename distro readme file to README.distro on install

* Mon May 15 2017 Neal Gompa <> - 1.0-1
- Update to 1.0

* Mon May 15 2017 Neal Gompa <> - 0-0.git20170515.22021f3
- Initial packaging