touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #89400
[Bug 1241424] Re: MainView.applicationName seemingly confuses QSettings
** Changed in: ubuntu-ui-toolkit (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1241424
Title:
MainView.applicationName seemingly confuses QSettings
Status in Ubuntu UI Toolkit:
Fix Released
Status in ubuntu-ui-toolkit package in Ubuntu:
Fix Released
Bug description:
MainView has a property applicationName which is set to
QApplication::applicationName. The expected value is something like
"com.ubuntu.developer.developerName.applicationName". However, the way
this is intended to be used by Qt is to combine organisationName and
applicationName.
This causes QSettings not to work in confined apps. It is still
possible to make it work by doing this in C++:
QCoreApplication::setOrganizationName("com.ubuntu.developer.developerName.appName");
QCoreApplication::setApplicationName("appName");
Next problem is, that the store's automatic checks try to find the
applicationName property in QML and reject the app if it's not
present. I tried setting the applicationName in QML and again
overwrite it in C++. This doesn't work. As soon as applicationName in
QML is used, the organisationName is cleared and QSettings tries to
store the config in
/home/user/.config/Unknown
Organization/com.ubuntu.developer.developerName.appName.conf
This obviously breaks when running the app confined.
To solve this, organisationName should be supported in MainView and
Ubuntu specific plugins like the LocalStorage should be adjusted to
make use of organisationName AND applicationName just in the same way
as Qt itself uses it.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1241424/+subscriptions