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:
parent
af9aaf9c1a
commit
02a4c58c3d
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue