Difference between revisions of "Set all Qt app's to use GTK+ font & theme settings"

use /etc/profile instead of /etc/environement
imported>Photon
(→‎How do you do it?: add quotation marks to export command)
imported>Yoy0
(use /etc/profile instead of /etc/environement)
Line 15: Line 15:
1) Install '''qt5ct'''  
1) Install '''qt5ct'''  


2) Set environment variables in '''/etc/environment''' and add the following lines:
2) Set environment variables in '''/etc/profile''' and add the following lines:


'''export QT_QPA_PLATFORMTHEME="qt5ct"'''
'''export QT_QPA_PLATFORMTHEME="qt5ct"'''
Line 27: Line 27:
5) In the first tab '''Appearance''' choose '''Standard Dialogs: default''' (some people get crashes if they choose GTK3)  
5) In the first tab '''Appearance''' choose '''Standard Dialogs: default''' (some people get crashes if they choose GTK3)  


Because we used /etc/environment to set the environment variables back in step 2), after you reboot, both the user & root accounts will be able to benefit from these changes.
Because we used /etc/profile to set the environment variables back in step 2), after you reboot, both the user & root accounts will be able to benefit from these changes.


(If you find that certain widget styles are missing, you can see if qt5-styleplugins brings a fix for you.)
(If you find that certain widget styles are missing, you can see if qt5-styleplugins brings a fix for you.)
Anonymous user