mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
Use startplasma-wayland to start plasma
This will allow to use plasma more similarly to what we are used to on the desktop. I found this needed specifically when I was trying to get plasma to work on another language but the current plasma-phone script never sets LANG or LANGUAGE.
This commit is contained in:
parent
a7a5a3f003
commit
06fe7ab86b
3 changed files with 9 additions and 62 deletions
|
|
@ -1,7 +1,3 @@
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/plasma-phone.cmake ${CMAKE_CURRENT_BINARY_DIR}/plasma-phone)
|
|
||||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/plasma-phone
|
|
||||||
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ WORLD_EXECUTE WORLD_READ GROUP_EXECUTE GROUP_READ
|
|
||||||
DESTINATION ${BIN_INSTALL_DIR})
|
|
||||||
install(PROGRAMS kwinwrapper DESTINATION ${BIN_INSTALL_DIR})
|
install(PROGRAMS kwinwrapper DESTINATION ${BIN_INSTALL_DIR})
|
||||||
|
|
||||||
configure_file(plasma-mobile.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/plasma-mobile.desktop)
|
configure_file(plasma-mobile.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/plasma-mobile.desktop)
|
||||||
|
|
|
||||||
|
|
@ -2,24 +2,25 @@
|
||||||
|
|
||||||
[ -f /etc/profile ] && . /etc/profile
|
[ -f /etc/profile ] && . /etc/profile
|
||||||
|
|
||||||
export $(dbus-launch)
|
|
||||||
export QT_QPA_PLATFORM=wayland
|
export QT_QPA_PLATFORM=wayland
|
||||||
export QT_QPA_PLATFORMTHEME=KDE
|
export QT_QPA_PLATFORMTHEME=KDE
|
||||||
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
||||||
export XDG_CURRENT_DESKTOP=KDE
|
|
||||||
export EGL_PLATFORM=wayland
|
export EGL_PLATFORM=wayland
|
||||||
|
|
||||||
export KDE_FULL_SESSION=1
|
|
||||||
export KDE_SESSION_VERSION=5
|
|
||||||
export PLASMA_PLATFORM=phone
|
|
||||||
export QT_QUICK_CONTROLS_STYLE=Plasma
|
export QT_QUICK_CONTROLS_STYLE=Plasma
|
||||||
export QT_ENABLE_GLYPH_CACHE_WORKAROUND=1
|
export QT_ENABLE_GLYPH_CACHE_WORKAROUND=1
|
||||||
export QT_QUICK_CONTROLS_MOBILE=true
|
export QT_QUICK_CONTROLS_MOBILE=true
|
||||||
|
export PLASMA_PLATFORM=phone:handset
|
||||||
|
|
||||||
|
export GRID_UNIT_PX=25
|
||||||
|
export FORCE_RIL_NUM_MODEMS=1
|
||||||
|
export PLASMA_DEFAULT_SHELL=org.kde.plasma.phone
|
||||||
|
|
||||||
# work around to fix : https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1507584
|
# work around to fix : https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1507584
|
||||||
if [ -d /usr/lib/arm-linux-gnueabihf/libhybris-egl ]; then
|
_ARCH=arm-linux-gnueabihf
|
||||||
export LD_LIBRARY_PATH=/usr/lib/arm-linux-gnueabihf/libhybris-egl:$LD_LIBRARY_PATH
|
if [ -d /usr/lib/$_ARCH/libhybris-egl ]; then
|
||||||
|
export LD_LIBRARY_PATH=/usr/lib/$_ARCH/libhybris-egl:$LD_LIBRARY_PATH
|
||||||
fi
|
fi
|
||||||
|
|
||||||
touch /tmp/simplelogin_starting
|
touch /tmp/simplelogin_starting
|
||||||
kwin_wayland --xwayland --libinput --inputmethod maliit-server plasma-phone
|
startplasma-wayland --xwayland --libinput --inputmethod maliit-server --exit-with-session=/usr/lib/$_ARCH/libexec/startplasma-waylandsession
|
||||||
|
|
|
||||||
|
|
@ -1,50 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# Script that starts the Plasma phone UI.
|
|
||||||
#
|
|
||||||
# Copyright (C) 2014 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or modify it
|
|
||||||
# under the terms of the GNU Lesser General Public License as published by
|
|
||||||
# the Free Software Foundation; either version 2.1 of the License, or
|
|
||||||
# (at your option) any later version.
|
|
||||||
#
|
|
||||||
|
|
||||||
unset QT_QPA_EGLFS_DEPTH
|
|
||||||
unset QT_QPA_EGLFS_HIDECURSOR
|
|
||||||
unset QT_COMPOSITOR_NEGATE_INVERTED_Y
|
|
||||||
|
|
||||||
export EGL_PLATFORM=wayland
|
|
||||||
export QT_QPA_PLATFORM=wayland
|
|
||||||
export QT_QPA_PLATFORMTHEME=KDE
|
|
||||||
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
|
||||||
export XDG_CURRENT_DESKTOP=KDE
|
|
||||||
|
|
||||||
export KDE_FULL_SESSION=1
|
|
||||||
export KDE_SESSION_VERSION=5
|
|
||||||
export PLASMA_PLATFORM=phone:handset
|
|
||||||
export QT_QUICK_CONTROLS_STYLE=Plasma
|
|
||||||
|
|
||||||
export GRID_UNIT_PX=25
|
|
||||||
export FORCE_RIL_NUM_MODEMS=1
|
|
||||||
export QT_QUICK_CONTROLS_MOBILE=true
|
|
||||||
|
|
||||||
@CMAKE_INSTALL_FULL_LIBEXECDIR@/ksyncdbusenv
|
|
||||||
|
|
||||||
# HACK: FIXME: This should autostart when required but appearantly there is some async magic which prevents it gettings started.
|
|
||||||
# start signond service
|
|
||||||
dbus-send --session --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.StartServiceByName string:com.google.code.AccountsSSO.SingleSignOn uint32:0
|
|
||||||
|
|
||||||
# start mission control
|
|
||||||
dbus-send --session --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.StartServiceByName string:org.freedesktop.Telepathy.MissionControl5 uint32:0
|
|
||||||
|
|
||||||
#start kded5
|
|
||||||
@CMAKE_INSTALL_FULL_BINDIR@/kded5 &
|
|
||||||
|
|
||||||
# start polkit authentication agent
|
|
||||||
@CMAKE_INSTALL_FULL_LIBEXECDIR@/polkit-kde-authentication-agent-1 &
|
|
||||||
|
|
||||||
# start powerdevil
|
|
||||||
@CMAKE_INSTALL_FULL_LIBEXECDIR@/org_kde_powerdevil &
|
|
||||||
|
|
||||||
exec /usr/bin/plasmashell -p org.kde.plasma.phone 2>/tmp/plasmashell_logs
|
|
||||||
Loading…
Reference in a new issue