a4c298f829
Move Wayland meta packages to LightDM and replace ConsoleKit2 for elogind for Plasma. Now we don't need the hacky scripts in /etc/profile.d anymore! This change requires elogind for both Weston and Plasma Mobile. Using elogind allows us to use one patch less in kwin. Weston has logind (which elogind provides) support disabled in Alpine Linux, so I put the package in temp/ with it enabled for now, but will upstream this change to Alpine. Remove consolekit2 dependency in postmarketos-ui-xfce4. [ci:skip-build]: already built successfully.
29 lines
1,011 B
Bash
Executable file
29 lines
1,011 B
Bash
Executable file
#!/bin/sh
|
|
|
|
udevadm trigger
|
|
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
|
|
export XDG_CURRENT_DESKTOP=KDE
|
|
export KDE_SESSION_VERSION=5
|
|
export PLASMA_PLATFORM=phone
|
|
export QT_VIRTUALKEYBOARD_STYLE=Plasma
|
|
export QT_QUICK_CONTROLS_MOBILE=true
|
|
|
|
sleep 2
|
|
|
|
if [ -d "/dev/dri" ]; then
|
|
kwin_wayland --drm --xwayland plasma-phone 2>&1 | logger -t "$(whoami):plasma-mobile"
|
|
else
|
|
# NOTE: using GALLIUM_DRIVER=llvmpipe might give you better performance (or not work at all.)
|
|
# If it does give you a performance gain, please open an issue to discuss how to implement this properly.
|
|
export GALLIUM_DRIVER=softpipe
|
|
export KWIN_COMPOSE=Q
|
|
export LIBGL_ALWAYS_SOFTWARE=1
|
|
|
|
echo "startplasmamobile: using software rendering with: ${GALLIUM_DRIVER}" | logger -t "$(whoami):plasma-mobile"
|
|
kwin_wayland --framebuffer --xwayland plasma-phone 2>&1 | logger -t "$(whoami):plasma-mobile"
|
|
fi
|