diff --git a/bin/CMakeLists.txt b/bin/CMakeLists.txt index 1054e8f..65acd08 100644 --- a/bin/CMakeLists.txt +++ b/bin/CMakeLists.txt @@ -1,7 +1,8 @@ -install(PROGRAMS kwinwrapper DESTINATION ${BIN_INSTALL_DIR}) +configure_file(kwinwrapper.in ${CMAKE_CURRENT_BINARY_DIR}/kwinwrapper) +install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/kwinwrapper DESTINATION ${BIN_INSTALL_DIR}) configure_file(plasma-mobile.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/plasma-mobile.desktop) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/plasma-mobile.desktop DESTINATION ${KDE_INSTALL_DATADIR}/wayland-sessions ) diff --git a/bin/kwinwrapper b/bin/kwinwrapper.in similarity index 74% rename from bin/kwinwrapper rename to bin/kwinwrapper.in index f43d5d9..0fd7050 100755 --- a/bin/kwinwrapper +++ b/bin/kwinwrapper.in @@ -1,27 +1,26 @@ #!/bin/sh [ -f /etc/profile ] && . /etc/profile export QT_QPA_PLATFORM=wayland export QT_QPA_PLATFORMTHEME=KDE export QT_WAYLAND_DISABLE_WINDOWDECORATION=1 export EGL_PLATFORM=wayland export QT_QUICK_CONTROLS_STYLE=Plasma export QT_ENABLE_GLYPH_CACHE_WORKAROUND=1 export QT_QUICK_CONTROLS_MOBILE=true export PLASMA_PLATFORM=phone:handset export QT_VIRTUALKEYBOARD_STYLE=Plasma 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 -_ARCH=arm-linux-gnueabihf -if [ -d /usr/lib/$_ARCH/libhybris-egl ]; then - export LD_LIBRARY_PATH=/usr/lib/$_ARCH/libhybris-egl:$LD_LIBRARY_PATH +if [ -d @KDE_INSTALL_FULL_LIBDIR@/libhybris-egl ]; then + export LD_LIBRARY_PATH=@KDE_INSTALL_FULL_LIBDIR@/libhybris-egl:$LD_LIBRARY_PATH fi touch /tmp/simplelogin_starting -startplasma-wayland --xwayland --libinput --inputmethod maliit-server --exit-with-session=/usr/lib/$_ARCH/libexec/startplasma-waylandsession +startplasma-wayland --xwayland --libinput --inputmethod maliit-server --exit-with-session=@KDE_INSTALL_FULL_LIBEXECDIR@/startplasma-waylandsession