fix: use QT_QPA_PLATFORMTHEME=qt5ct not qt6ct

The version of qt5ct shipped with Pop!_OS requires this. qt6ct still accepts either value.
This commit is contained in:
Adil Hanney 2026-03-14 21:16:58 +00:00 committed by Ashley Wulber
parent af9aaf9c1a
commit 02a4c58c3d

View file

@ -46,9 +46,10 @@ if [ -z "$QT_QPA_PLATFORMTHEME" ]; then
# CuteCosmic found, no need for a fallback.
export QT_QPA_PLATFORMTHEME=cosmic
break
elif [ -f "${QT_PLUGIN_PATH}/platformthemes/libqt6ct.so" ]; then
elif [ -f "${QT_PLUGIN_PATH}/platformthemes/libqt6ct.so" ] || [ -f "${QT_PLUGIN_PATH}/platformthemes/libqt5ct.so" ]; then
# Fallback to qt6ct, but keep looking for CuteCosmic.
export QT_QPA_PLATFORMTHEME=qt6ct
# Note that "qt5ct" is compatible with both qt5ct and qt6ct.
export QT_QPA_PLATFORMTHEME=qt5ct
fi
done
fi