View Single Post
int_ua's Avatar
Posts: 676 | Thanked: 1,067 times | Joined on Jul 2010 @ Kyiv, Ukraine
#1
I've just found out that some software (at least in the extras-devel) didn't use QSettings correctly. Their code looks like this:

Code:
       settings = QtCore.QSettings()
       QtCore.QCoreApplication.setOrganizationName('%irrelevant%')
       QtCore.QCoreApplication.setOrganizationDomain(%irrelevant%')
       QtCore.QCoreApplication.setApplicationName('%irrelevant%')
Where in needs to be

Code:
      QtCore.QCoreApplication.setOrganizationName('%irrelevant%')
       QtCore.QCoreApplication.setOrganizationDomain(%irrelevant%')
       QtCore.QCoreApplication.setApplicationName('%irrelevant%')
       settings = QtCore.QSettings()
It results in a situation where multiple packages garbage the file ~/.config/Unknown\ Organization.conf

I hope that simple grep in postinst script will suffice for moving this settings after fixing the code.