main/postmarketos-ui-*: fix lightdm autologin after reinstall (!385)
When the UI package is reinstalled (due to the package being recompiled or upgraded), it runs $pkgname.post-upgrade instead of $pkgname.post-install which would run the sed replacement LightDM autologin. This will cause LightDM to show the greeter when the UI package is rebuilt, and the user ran pmbootstrap install without deleting the old chroot. Signed-off-by: Asriel Dreemurr <asriel.danctnix@gmail.com> Reviewed-by: Danct12 <danct12@disroot.org> Signed-off-by: Danct12 <danct12@disroot.org>
This commit is contained in:
parent
b446c06b79
commit
5b1a20fbaf
10 changed files with 34 additions and 10 deletions
|
@ -1,12 +1,12 @@
|
|||
pkgname=postmarketos-ui-hildon
|
||||
pkgver=1
|
||||
pkgrel=6
|
||||
pkgrel=7
|
||||
pkgdesc="(X11) Lightweight GTK+2 UI (optimized for single-touch touchscreens)"
|
||||
url="https://postmarketos.org"
|
||||
arch="noarch"
|
||||
license="GPL3+"
|
||||
depends="dbus-x11 gtk+2.0-maemo hildon-desktop hildon-theme-alpha mesa xorg-server lightdm"
|
||||
install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-deinstall"
|
||||
install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-deinstall $pkgname.post-upgrade"
|
||||
source="60-lightdm-autologin.conf hildon.desktop xinitrc_hildon.sh"
|
||||
options="!check"
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
#!/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
|
|
@ -1,12 +1,12 @@
|
|||
pkgname=postmarketos-ui-i3wm
|
||||
pkgver=0.3
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="(X11) Tiling WM (keyboard required)"
|
||||
url="https://i3wm.org"
|
||||
arch="noarch"
|
||||
license="GPL-3.0"
|
||||
depends="xorg-server mesa-egl i3wm i3status dmenu xset xinput st lightdm"
|
||||
install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-deinstall"
|
||||
install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-deinstall $pkgname.post-upgrade"
|
||||
source="lock.sh 60-lightdm-autologin.conf"
|
||||
options="!check"
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
#!/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
|
|
@ -1,12 +1,12 @@
|
|||
pkgname=postmarketos-ui-matchbox
|
||||
pkgver=1
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
pkgdesc="(X11) Very basic user interface for handhelds"
|
||||
url="https://matchbox-project.org"
|
||||
arch="noarch"
|
||||
license="GPL-2.0-only"
|
||||
depends="matchbox-common matchbox-panel matchbox-desktop matchbox-keyboard matchbox-window-manager xterm xorg-server dbus-x11 mesa-egl gtk+2.0 lightdm"
|
||||
install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-deinstall"
|
||||
install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-deinstall $pkgname.post-upgrade"
|
||||
source="matchbox.desktop 60-lightdm-autologin.conf"
|
||||
options="!check"
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
#!/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
|
|
@ -1,12 +1,12 @@
|
|||
pkgname=postmarketos-ui-mate
|
||||
pkgver=1
|
||||
pkgrel=5
|
||||
pkgrel=6
|
||||
pkgdesc="(X11) MATE Desktop Environment, fork of GNOME2 (stylus recommended)"
|
||||
url="http://mate-desktop.org/"
|
||||
arch="noarch"
|
||||
license="GPL3+"
|
||||
depends="mate-desktop-environment xorg-server dbus-x11 mesa-egl postmarketos-artwork-wallpapers gtk+2.0 lightdm"
|
||||
install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-deinstall"
|
||||
install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-deinstall $pkgname.post-upgrade"
|
||||
subpackages=""
|
||||
source="000-system-background.gschema.override 60-lightdm-autologin.conf"
|
||||
options="!check"
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
#!/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
|
|
@ -1,12 +1,12 @@
|
|||
pkgname=postmarketos-ui-xfce4
|
||||
pkgver=0.2
|
||||
pkgrel=6
|
||||
pkgrel=7
|
||||
pkgdesc="(X11) Lightweight GTK+2 desktop (stylus recommended)"
|
||||
url="https://gitlab.com/postmarketOS/xfce4-phone"
|
||||
arch="noarch"
|
||||
license="GPL-3.0+"
|
||||
depends="xfce4 xorg-server mesa-egl postmarketos-artwork-wallpapers faenza-icon-theme xfce4-battery-plugin network-manager-applet gnome-keyring lxpolkit gtk+2.0 lightdm"
|
||||
install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-deinstall"
|
||||
install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-deinstall $pkgname.post-upgrade"
|
||||
source="$pkgname-$pkgver.tar.gz::https://gitlab.com/postmarketOS/xfce4-phone/-/archive/$pkgver/xfce4-phone-$pkgver.tar.gz
|
||||
60-lightdm-autologin.conf"
|
||||
options="!check"
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
#!/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
|
Loading…
Reference in a new issue