[util-iso-image] add support for qt5-styleplugins and qt5ct

This commit is contained in:
Philip 2016-06-27 20:41:22 +02:00
parent e3b6be3333
commit 6770fb9bd1

View file

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