main/postmarketos-ui-phosh: re-enable autologin (MR 1630)

We have tried out lightdm-mobile-greeter for three weeks, but let's remove
it again from the default install.

The greeter behaves completely different from the Phosh (or any other
UI's) lockscreen, therefore it provides a bad user experience. Not only
the design is different, but it also can't display the same information
as the Phosh lockscreen. You can't accept a call coming in while the
greeter is displayed, and whatever other features will be added to the
lockscreen in the future would not be in the greeter (e.g. making a photo
without logging in, emergency calls without login, ...).

It's clear to me now, that postmarketOS in the default installation
should install one UI in single-user mode, and that UI should use its
lockscreen to display all login screens. The case of having multiple UIs
installed at the same time is used rarely, so instead of optimizing for
it, document how to enable a greeter after the installation in the wiki:
https://wiki.postmarketos.org/wiki/Configure_postmarketOS_for_multiple_UIs_or_users

Besides the strong reasons above to ship with no greeter at all, we had
problems with lightdm-mobile-greeter in particular:
* It did not work with Plasma Mobile
* When HDMI was plugged in, the greeter was not usable (especially
  annoying, because Phosh tends to crash after plugging in HDMI, so it
  would go back to the greeter which then means you need to reboot)

This reverts commit be693339ec.
This commit is contained in:
Oliver Smith 2020-10-10 21:27:30 +02:00 committed by Bart Ribbers
parent e8a3b624ef
commit 2420f9a0bf
No known key found for this signature in database
GPG key ID: 699D16185DAFAE61
3 changed files with 7 additions and 6 deletions

View file

@ -1,5 +1,5 @@
# This file gets removed with postmarketos-ui-phosh, even if modified!
[Seat:*]
autologin-user=
greeter-session=lightdm-mobile-greeter
user-session=phosh
autologin-user=username
autologin-user-timeout=0
autologin-session=phosh

View file

@ -1,7 +1,7 @@
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=postmarketos-ui-phosh
pkgver=5
pkgrel=0
pkgrel=1
pkgdesc="(Wayland) Mobile UI developed for the Librem 5 (works only with numeric passwords!)"
url="https://puri.sm"
arch="noarch !armhf !x86" # x86: aports#11807
@ -11,7 +11,6 @@ depends="bluez
iio-sensor-proxy
lightdm
lightdm-openrc
lightdm-mobile-greeter
phosh
polkit-elogind
pulseaudio
@ -74,7 +73,7 @@ qt_tweaks() {
install -Dm755 "$srcdir"/qt-tweaks.sh \
"$subpkgdir"/etc/profile.d/phosh-qt-tweaks.sh
}
sha512sums="de97f8a0a6ede3c68826f87e83660ab063ad57472784062d8412d6265a55292e45b78c458fa26cccb23d0affb20210cd3106c9b589bc590dc386fb21c3a24d9a 60-lightdm-autologin.conf
sha512sums="c51a5cf93495069d71900dd1c6fbddfa3bdfb70dbab8141d1b115b6150975a12206c63517f18dc516e0366028b32e014b6d37a20e19ff73d5f0934c518d3ab39 60-lightdm-autologin.conf
8d06874d8beafbcdc7a427539adfe9dcc97bfb6ab6010c5268589165971518d77da4f7de59cc60af3d104c7988b9fe412f9d2e93542a16babdb4502efbf1c70c 000-gschema.override
4113ef59267e88d205ef1e1aec0ed11ccf817a25c232f2006a538b56fb466fad5025ad445d109e367ca92ee98d9b25f1f9a1a4b9bae2cb80df12a3739d62d10a osk.sh
57793bb079c76ba3bdcfca7880aa887de11fe80e7a05557b78435e57feabab70fbaeedc42da3aec6f914c35bba8e8ee9918367516eb45ee247f63f694624f179 gtk-app-wayland.sh

View file

@ -1,5 +1,7 @@
#!/bin/sh
sed -i "s/username/$(getent passwd 10000 | cut -d: -f1)/g" /usr/share/lightdm/lightdm.conf.d/60-autologin.conf
rc-update add lightdm default
rc-update add modemmanager default
rc-update add bluetooth default