File indexing completed on 2024-04-28 05:33:38

0001 #!/bin/sh
0002 
0003 # SPDX-FileCopyrightText: 2019-2021 Aleix Pol <apol@kde.org>
0004 # SPDX-FileCopyrightText: 2019-2021 Bhushan Shah <bshah@kde.org>
0005 # SPDX-FileCopyrightText: 2019-2020 Jonah BrĂ¼chert <jbb@kaidan.im>
0006 # SPDX-License-Identifier: GPL-2.0-or-later
0007 
0008 [ -f /etc/profile ] && . /etc/profile
0009 
0010 export QT_QPA_PLATFORM=wayland
0011 export QT_QPA_PLATFORMTHEME=KDE
0012 export EGL_PLATFORM=wayland
0013 
0014 export QT_QUICK_CONTROLS_STYLE=org.kde.breeze
0015 export QT_ENABLE_GLYPH_CACHE_WORKAROUND=1
0016 export QT_QUICK_CONTROLS_MOBILE=true
0017 export PLASMA_INTEGRATION_USE_PORTAL=1
0018 export PLASMA_PLATFORM=phone:handset
0019 
0020 # if coredumpd knows about the dumps, make sure drkonqi catches them
0021 if grep -q '/systemd-coredump' /proc/sys/kernel/core_pattern
0022 then
0023         export KDE_COREDUMP_NOTIFY=1
0024 fi
0025 
0026 # ensure that we have our environment settings set properly prior to the shell being loaded (otherwise there is a race condition with autostart)
0027 QT_QPA_PLATFORM=offscreen plasma-mobile-envmanager --apply-settings
0028 
0029 # start the shell
0030 export PLASMA_DEFAULT_SHELL=org.kde.plasma.mobileshell
0031 startplasma-wayland --xwayland --inputmethod maliit-keyboard