[util-iso-image] with qt5ct 0.25 QT_STYLE_OVERRIDE needs to be removed

This commit is contained in:
Philip 2016-08-14 14:50:27 +02:00
parent 4cfbe4543f
commit 04c6b3917e

View file

@ -65,14 +65,14 @@ configure_environment(){
case ${profile} in case ${profile} in
cinnamon*|deepin*|gnome|i3|lxde|mate|netbook|openbox|pantheon|xfce*) cinnamon*|deepin*|gnome|i3|lxde|mate|netbook|openbox|pantheon|xfce*)
echo "QT_STYLE_OVERRIDE=gtk" >> $1/etc/environment echo "QT_STYLE_OVERRIDE=gtk" >> $1/etc/environment
if [[ -f "$1/usr/lib/qt/plugins/platformthemes/libqt5ct.so" ]];then
sed -i '/QT_STYLE_OVERRIDE=gtk/d' $1/etc/environment
echo "QT_QPA_PLATFORMTHEME=qt5ct" >> $1/etc/environment
fi
if [[ -f "$1/usr/lib/qt/plugins/styles/libqgtk2style.so" ]];then if [[ -f "$1/usr/lib/qt/plugins/styles/libqgtk2style.so" ]];then
sed -i '/QT_STYLE_OVERRIDE=gtk/d' $1/etc/environment sed -i '/QT_STYLE_OVERRIDE=gtk/d' $1/etc/environment
echo "QT_STYLE_OVERRIDE=gtk2" >> $1/etc/environment echo "QT_STYLE_OVERRIDE=gtk2" >> $1/etc/environment
fi fi
if [[ -f "$1/usr/lib/qt/plugins/platformthemes/libqt5ct.so" ]];then
sed -i '/QT_STYLE_OVERRIDE=gtk/d' $1/etc/environment
echo "QT_QPA_PLATFORMTHEME=qt5ct" >> $1/etc/environment
fi
;; ;;
esac esac
} }