Export some environment variables when starting plasma (#1341)

This environnment variables provides better integration and themeing to
various components and is inline with what reference Plasma Mobile
images is doing

Signed-off-by: Bhushan Shah <bhush94@gmail.com>
This commit is contained in:
Bhushan Shah 2018-03-17 01:12:48 +05:30 committed by Oliver Smith
parent 3e198bac24
commit 388a1bee06
2 changed files with 10 additions and 2 deletions

View file

@ -1,6 +1,6 @@
pkgname=postmarketos-ui-plasma-mobile
pkgver=1
pkgrel=11
pkgrel=12
pkgdesc="(Wayland) Mobile variant of KDE Plasma, optimized for touchscreen (aarch64, x86_64 or hardware acceleration required!)"
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="863ea3801b5f045891c511788980be7d2da8fb673038367725a15d6ae17b990e333d4655f4f418516e1cd8be37c2e4fa66e1b147b7266a6a290569a8d67ea368 start_plasma.sh
sha512sums="13bb7646ab4e6ec0638a20765e4ca173a119a69515b5993d65ef868b6fd5db1ac448ffc522e7cc8806a12786de6b44e8aff4b8dd5ec7e58a6dfa04a9eebf9e00 start_plasma.sh
a95d3bbd1e8051c9b394ad7a26e4beb2d1be8d3c38189819da61fd42b1c7fd3948c4737bc9246eee23eaf5fd9451cd6362fb06442f3d8f967f930d3bcc5cfbe9 kwinrc
341f0b866c315f37868ef3e7137cce8b53a0e8e6164e5af71b3e8e2fa68321afbf0652d76124ef84bade1393f701748852ac939aef9daff7e272a0df827780eb qtlogging.ini"

View file

@ -10,6 +10,14 @@ if test -z "${XDG_RUNTIME_DIR}"; then
udevadm settle
export QML2_IMPORT_PATH=/usr/lib/qt/qml:/usr/lib/qt5/qml
export QT_QPA_PLATFORMTHEME=KDE
export QT_QUICK_CONTROLS_STYLE=Plasma
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
# this is due to broken xdgvshell6 in qt
export QT_WAYLAND_SHELL_INTEGRATION=wl-shell
export XDG_CURRENT_DESKTOP=KDE
export KDE_SESSION_VERSION=5
export PLASMA_PLATFORM=phone
sleep 2