2

I've been using xubuntu for the past few months and have been continuously struggling to understand why almost every time i install a new program, it looks like something from windows 95:

Image

I included the file manager in the screenshot for an example of how I have configured the desktop appearance in the system settings.

  • I've tried installing qtconfig-qt4 but changing settings there has no effect.
  • I installed qt5ct and it won't launch due to an error:

    the qt_qpa_platformtheme environment variable is not set correctly

  • I've tried setting the environment variable to qt5ct as suggested in some forums, and this also has no effect.
  • I've also tried running QT_QPA_PLATFORMTHEME="qt5ct" qt5ct which launches the Qt5 theme chooser. But choosing any theme does nothing other than change the theme of the theme chooser itself.
  • I've added export QT_STYLE_OVERRIDE=gtk to my ~/.bashrc file and this does nothing either.

Additionally, while it may or may not be related, trying to change the theme using gtk-theme-switch2 appears to work but then after closing the program i get the following error appear on-screen:

Image

What am I doing wrong?

migrated from stackoverflow.com Jul 27 at 14:44

This question came from our site for professional and enthusiast programmers.

  • 1
    Wouldn't "Most desktop programs on xubuntu look terrible" be better expressed as "Most non-gtk desktop programs on xubuntu look terrible"? – DK Bose Jul 27 at 16:46
  • 1
    I think it's important to know which version of Xubuntu you use. – mook765 Jul 27 at 17:35
  • 1
    Also changes in qtconfig-qt4 will not affect applications which are installed as snaps (could be the case for clementine which I see in your screenshot). Clementine is also available from standard repos and if installed via apt qtconfig-qt4 should work. – mook765 Jul 27 at 17:46
  • 1
    snaps are also available via gnome-software, so maybe that's the way you installed them. Run snap list to see which snaps are installed on your system. – mook765 Jul 27 at 21:01
  • 1
    Don't forget to clean up your ~/.bashrc and take a look at my answer. – mook765 Jul 27 at 22:35
3

qtconfig-qt4 works for applications which are installed as .deb-packages and thus are integrated properly in the system.

Applications installed as snaps run in an isolated environment and you can't change their appearance with qtconfig-qt4. I have qtconfig-qt4 installed and the only change I made is the GUI-style in the Appearance-tab, changed from default to GTK+:

enter image description here

enter image description here

Clementine installed as a .deb-package looks like this:

enter image description here

But Clementine installed as a snap looks a bit ugly:

enter image description here

Clementine and Hexchat are available in both formats in gnome-software, as .deb-package as well as snap. When you install an application via gnome-software, scroll down to see the Details and take a look at the Source of the application.

enter image description here

enter image description here

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.