Skip to content
Snippets Groups Projects
Commit ec8efa4b authored by Luca Weiss's avatar Luca Weiss Committed by Bart Ribbers
Browse files

main/postmarketos-ui-unity8: new aport

parent 1c930cd0
Branches
No related tags found
No related merge requests found
# Contributor: Luca Weiss <luca@z3ntu.xyz>
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=postmarketos-ui-unity8
pkgver=1
pkgrel=0
pkgdesc="(Wayland) Unity8"
url="https://wiki.postmarketos.org/wiki/Unity_8"
arch="noarch"
license="GPL-3.0-or-later"
depends="unity8"
install="$pkgname.post-install"
source="start_unity8.sh"
options="!check"
package() {
install -D -m644 "$srcdir"/start_unity8.sh \
"$pkgdir"/etc/profile.d/start_unity8.sh
}
sha512sums="bc7a7f692e75044494d5c8aa7e376705be167bb4ec347aab221da706d664f85939f4c4af997746fc44f2ae7ffb89f0d5af1e40186b94ff1bfca89c21a1448168 start_unity8.sh"
#!/bin/sh
# Autologin on tty1, let busybox autoconfigure 2-6
autologin="$(getent passwd 10000 | cut -d ":" -f 1)"
for i in 1 2 3 4 5 6; do
old="^tty$i::respawn:/sbin/getty 38400 tty$i"
new="# tty$i::respawn:/sbin/getty 38400 tty$i"
[ "$i" == "1" ] && new="tty1::respawn:/bin/login -f $autologin"
sed -i -e "s.$old.$new.g" /etc/inittab
done
if test -z "${XDG_RUNTIME_DIR}"; then
export XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir
if ! test -d "${XDG_RUNTIME_DIR}"; then
mkdir "${XDG_RUNTIME_DIR}"
chmod 0700 "${XDG_RUNTIME_DIR}"
fi
if [ $(tty) = "/dev/tty1" ]; then
# udevadm trigger
# udevadm settle
# Wizard is broken
mkdir -p $HOME/.config/ubuntu-system-settings
touch $HOME/.config/ubuntu-system-settings/wizard-has-run
export LD_LIBRARY_PATH=/usr/lib/qt5/plugins/platforms
export MIR_SERVER_CURSOR=null
export QT_QPA_PLATFORM=mirserver
export G_MESSAGES_DEBUG=all
# sleep 2
ck-launch-session unity8 2>&1 | logger -t "$(whoami):unity8"
fi
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment