Compare commits

...
Author SHA1 Message Date
Jakob Hauser 4792e48b41 main/postmarketos-ui-lxqt: split post-install script
Move the line that sets the tinydm session out of the -openrc subpackage
post-install script into the main package post-install script, as this is
independent from OpenRC.
2024-09-29 05:45:48 +02:00
Jakob Hauser 29095cddc3 main/postmarketos-ui-lxqt: save and restore brightness on boots
LXQt can control the display brightness. It doesn't save and restore it
over boots, however. In distributions with systemd this is handled by
"systemd-backlight@.service". For OpenRC the package brightnessctl offers
a service saving the state of the brightness at shutdown and reboot.

The brightness save/restore function of brightnessctl can be disabled
by the user by disabling the according OpenRC service. To avoid it being
re-enabled on every postmarketos-ui-lxqt package upgrade, the enabling
of this service should not be part of the post-upgrade script permanently.
Adding it temporary could be an option but maybe it's better to keep it out
of the post-upgrade at all to avoid a too large unexpected change in behavior.
The service will therefore be enabled on new installs only.

Also the other contents of the current post-upgrade script (a symlink to the
post-install script) are not neccessary on upgrade, therefore remove the post-
upgrade script entirely.
2024-09-29 05:45:36 +02:00
4 changed files with 9 additions and 5 deletions

No files matched your search

+5 -2
View File
@@ -2,13 +2,14 @@
# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
pkgname=postmarketos-ui-lxqt
pkgver=0.3
pkgrel=2
pkgrel=4
pkgdesc="(X11) Lightweight Qt Desktop Environment (stylus recommended)"
url="https://lxqt-project.org/"
# armhf: lxqt-desktop not available
arch="noarch !armhf"
license="GPL-3.0-or-later"
depends="
brightnessctl
dbus-x11
dnsmasq
elogind
@@ -43,6 +44,7 @@ _pmb_recommends="
screengrab
unclutter-xfixes
"
install="$pkgname.post-install"
subpackages="$pkgname-openrc"
source="
$pkgname-$pkgver.tar.gz::https://gitlab.com/antoni.aloytorrens/lxqt-tablet/-/archive/$pkgver/lxqt-tablet-$pkgver.tar.gz
@@ -81,8 +83,9 @@ package() {
openrc() {
install_if="$pkgname=$pkgver-r$pkgrel openrc"
install="$subpkgname.post-install $subpkgname.post-upgrade"
install="$subpkgname.post-install"
depends="
brightnessctl-openrc
elogind-openrc
networkmanager-openrc
tinydm-openrc
@@ -1,7 +1,6 @@
#!/bin/sh
rc-update add brightnessctl default
rc-update add elogind default
rc-update add networkmanager default
rc-update add tinydm default
tinydm-set-session -s /usr/share/xsessions/lxqt.desktop
@@ -1 +0,0 @@
postmarketos-ui-lxqt-openrc.post-install
@@ -0,0 +1,3 @@
#!/bin/sh
tinydm-set-session -s /usr/share/xsessions/lxqt.desktop