snap: Prevent the use of the KDE Plasma platformtheme

A KDE session forces the KDE Plasma platformtheme which is incompatible with QET.
Unset the ENV vars in that case to prevent loading of the theme.
This commit is contained in:
Maximilian Federle
2020-05-06 21:42:11 +02:00
parent bc9ebca815
commit 9fa7e21905

View File

@@ -1,5 +1,15 @@
#!/bin/sh
# a KDE session forces the KDE Plasma platformtheme which is incompatible with QET
# unset the ENV vars in that case to prevent loading of the theme
if [ ! -z "$KDE_FULL_SESSION" ]; then
unset KDE_FULL_SESSION
fi
if echo "$XDG_CURRENT_DESKTOP" | grep -q KDE; then
unset XDG_CURRENT_DESKTOP
fi
# migrate .qet directory from SNAP_USER_DATA to SNAP_USER_COMMON
from="$SNAP_USER_DATA/.qet"
to="$SNAP_USER_COMMON/.qet"