forked from mirrored-repos/manjaro-tools
[util-iso-image] add support for qt5-styleplugins and qt5ct
This commit is contained in:
parent
e3b6be3333
commit
6770fb9bd1
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue