Fix ugly Qt4 apps on Lubuntu and Xubuntu 12.04 Precise Pangolin

Lubuntu LogoSo far Lubuntu 12.04 Precise Pangolin turned out really great. But there's always that one thing, my VLC media player looks strange and doesn't fit in with the rest of my operating system. Apparently Qt4 apps in Lubuntu doesn't pick up correct GTK theme. To fix this issue you just need to install libgnome2-common package and restart your Qt4 application.

You can do something like this from terminal:

sudo apt-get install libgnome2-common

This command will install library necessary to fix this issue. Have fun!

Edit: The same thing applies to Xfce desktop from Xubuntu 12.04 Precise Pangolin. I've forgot to point out that you need to logout/login into your desktop environment to notice changes.

DevGenii

E-commerce is a breeze with Magento Certified Developer Plus & Zend Certified PHP Engineer nearby. Get in touch!

4 thoughts on “Fix ugly Qt4 apps on Lubuntu and Xubuntu 12.04 Precise Pangolin

  1. Stefan Goldmann

    libgnomeui-0 itself does actually not contain the fix for the problem, but one of its dependencies, libgnome2-common.

    Thus, if you want to avoid all the additional packets coming with libgnomeui-0, simply install libgnome2-common.

    Reply
    1. Marko Author

      Yes I saw it draws a lot of dependencies but didn’t explore further. Thank you very much Stefan, I’ve updated this article.

      Reply
      1. Stefan Goldmann

        You’ve updated the “apt-get” line, but forgot to update the library reference within the floating text. 😉

        Cheers,
        — Stefan

        Btw: The actual fix consists of some Gnome schema files that come with libgnome2-common. The trigger of package gconf2 runs “gnome-schema –register-all”, which imports these schemas into the internal database of gconf. From this points, it seems that QtGtk finds the gconf keys it expects in order to resolve the Gtk theme being used.

        Reply
        1. Marko Author

          Silly me, I’ve updated reference inside text. Thanks again 😉 I’ve been wondering how does Gnome style QT apps so nicely so thanks for for detailed explanation.

          Reply

Leave a Reply

Your email address will not be published. Required fields are marked *