postmarketos-ui-plasma-mobile: use kwin with framebuffer when missing /dev/dri (#1062)
Modified Plasma launch script to (crudely and unreliably) detect if it has to run on the framebuffer or not
This commit is contained in:
parent
988aef6646
commit
75cd812fa3
2 changed files with 9 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
pkgname=postmarketos-ui-plasma-mobile
|
||||
pkgver=1
|
||||
pkgrel=8
|
||||
pkgrel=9
|
||||
pkgdesc="(Wayland) Mobile variant of KDE Plasma, optimized for touchscreen"
|
||||
url="https://wiki.postmarketos.org/wiki/Plasma_Mobile"
|
||||
arch="noarch"
|
||||
|
@ -26,6 +26,6 @@ package() {
|
|||
install -D -m644 "$srcdir"/qtlogging.ini \
|
||||
"$pkgdir"/etc/skel/.config/QtProject/qtlogging.ini
|
||||
}
|
||||
sha512sums="535b0378767c4c55974f15314f128b421879606094c681db0f9230552d9da83bedc2ba3143368c973259ba5f7025ccdde38c80c558828e3f53f6c5ae26227fef start_plasma.sh
|
||||
sha512sums="863ea3801b5f045891c511788980be7d2da8fb673038367725a15d6ae17b990e333d4655f4f418516e1cd8be37c2e4fa66e1b147b7266a6a290569a8d67ea368 start_plasma.sh
|
||||
a95d3bbd1e8051c9b394ad7a26e4beb2d1be8d3c38189819da61fd42b1c7fd3948c4737bc9246eee23eaf5fd9451cd6362fb06442f3d8f967f930d3bcc5cfbe9 kwinrc
|
||||
341f0b866c315f37868ef3e7137cce8b53a0e8e6164e5af71b3e8e2fa68321afbf0652d76124ef84bade1393f701748852ac939aef9daff7e272a0df827780eb qtlogging.ini"
|
||||
|
|
|
@ -12,6 +12,12 @@ if test -z "${XDG_RUNTIME_DIR}"; then
|
|||
export QML2_IMPORT_PATH=/usr/lib/qt/qml:/usr/lib/qt5/qml
|
||||
|
||||
sleep 2
|
||||
ck-launch-session kwin_wayland --drm --xwayland -- plasma-phone 2>&1 | logger -t "$(whoami):plasma-mobile"
|
||||
|
||||
if [ -d "/dev/dri" ]; then
|
||||
ck-launch-session kwin_wayland --drm --xwayland plasma-phone 2>&1 | logger -t "$(whoami):plasma-mobile"
|
||||
else
|
||||
export KWIN_COMPOSE=Q
|
||||
ck-launch-session kwin_wayland --framebuffer --xwayland plasma-phone 2>&1 | logger -t "$(whoami):plasma-mobile"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue