2023-11-05 21:33:06 +00:00
|
|
|
#!/bin/sh
|
2019-10-14 13:45:45 +00:00
|
|
|
|
2021-12-23 16:02:41 +00:00
|
|
|
# SPDX-FileCopyrightText: 2019-2021 Aleix Pol <apol@kde.org>
|
|
|
|
|
# SPDX-FileCopyrightText: 2019-2021 Bhushan Shah <bshah@kde.org>
|
|
|
|
|
# SPDX-FileCopyrightText: 2019-2020 Jonah Brüchert <jbb@kaidan.im>
|
|
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
2019-10-14 13:45:45 +00:00
|
|
|
[ -f /etc/profile ] && . /etc/profile
|
|
|
|
|
|
|
|
|
|
export QT_QPA_PLATFORMTHEME=KDE
|
|
|
|
|
export EGL_PLATFORM=wayland
|
|
|
|
|
|
2020-12-04 16:40:41 +00:00
|
|
|
export QT_QUICK_CONTROLS_STYLE=org.kde.breeze
|
2019-10-14 13:45:45 +00:00
|
|
|
export QT_ENABLE_GLYPH_CACHE_WORKAROUND=1
|
|
|
|
|
export QT_QUICK_CONTROLS_MOBILE=true
|
2020-09-18 14:27:32 +00:00
|
|
|
export PLASMA_INTEGRATION_USE_PORTAL=1
|
2019-12-04 19:37:59 +00:00
|
|
|
export PLASMA_PLATFORM=phone:handset
|
2019-10-14 13:45:45 +00:00
|
|
|
|
2025-04-24 15:26:11 +00:00
|
|
|
# Set ~/.config/plasma-mobile/... as location for default mobile configs (i.e. envmanager generated)
|
|
|
|
|
export XDG_CONFIG_DIRS="$HOME/.config/plasma-mobile:/etc/xdg:$XDG_CONFIG_DIRS"
|
|
|
|
|
|
2022-03-05 17:33:35 +00:00
|
|
|
# if coredumpd knows about the dumps, make sure drkonqi catches them
|
2024-02-05 17:47:31 +00:00
|
|
|
if grep -q '/systemd-coredump' /proc/sys/kernel/core_pattern
|
2022-03-05 17:33:35 +00:00
|
|
|
then
|
|
|
|
|
export KDE_COREDUMP_NOTIFY=1
|
|
|
|
|
fi
|
2021-09-07 02:29:57 +00:00
|
|
|
|
2023-11-23 18:28:19 +00:00
|
|
|
# ensure that we have our environment settings set properly prior to the shell being loaded (otherwise there is a race condition with autostart)
|
|
|
|
|
QT_QPA_PLATFORM=offscreen plasma-mobile-envmanager --apply-settings
|
|
|
|
|
|
|
|
|
|
# start the shell
|
2023-11-23 08:05:44 +00:00
|
|
|
export PLASMA_DEFAULT_SHELL=org.kde.plasma.mobileshell
|
2023-07-17 11:57:26 +00:00
|
|
|
startplasma-wayland --xwayland --inputmethod maliit-keyboard
|