startkde: do not export QT_PLUGIN_PATH and QT_PLATFORM_PLUGIN

Katie now checks for XDG_CURRENT_DESKTOP when detecting which platform
plugin to use (see 01dab8cebd94d94969f034fbd842bc45d690d72d in the Katie
repo) and KComponentData setups the library and plugin paths (see
kdelibs/kdecore/kernel/kcomponentdata.cpp) thus exporting the environment
variables is redundant (could be exported for applications that are not
part of Katana but that is not Katana's responsibility)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-08-20 16:45:17 +03:00
parent b099184aff
commit 31f2eb9b81

View file

@ -26,14 +26,6 @@ elif test $kcheckrunning_result -eq 2 ; then
fi
unset kcheckrunning_result
# Set the path for Katie plugins provided by KDE
QT_PLUGIN_PATH=${QT_PLUGIN_PATH+$QT_PLUGIN_PATH:}`kde4-config --path qtplugins`
export QT_PLUGIN_PATH
# Set the platform plugin for Katie to the one provided by KDE
QT_PLATFORM_PLUGIN=kde
export QT_PLATFORM_PLUGIN
# Make sure that the KDE prefix is first in XDG_DATA_DIRS and that it's set at all.
# The spec allows XDG_DATA_DIRS to be not set, but X session startup scripts tend
# to set it to a list of paths *not* including the KDE prefix if it's not /usr or