From 9fa7e219054224eb4ecb40b64f6cb96472f8be5f Mon Sep 17 00:00:00 2001 From: Maximilian Federle Date: Wed, 6 May 2020 21:42:11 +0200 Subject: [PATCH] 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. --- build-aux/snap/local/launchers/qelectrotech-launch | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build-aux/snap/local/launchers/qelectrotech-launch b/build-aux/snap/local/launchers/qelectrotech-launch index d56bcfdcd..563581d5a 100755 --- a/build-aux/snap/local/launchers/qelectrotech-launch +++ b/build-aux/snap/local/launchers/qelectrotech-launch @@ -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"