Activity log for bug #1241424

Date Who What changed Old value New value Message
2013-10-18 08:39:59 Michael Zanetti bug added bug
2013-10-18 08:40:55 Michael Zanetti 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 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. 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.
2013-10-18 08:53:06 Tim Peeters ubuntu-ui-toolkit: assignee Christian Dywan (kalikiana)
2013-10-18 09:56:47 Michał Sawicz bug added subscriber Michał Sawicz
2013-10-18 11:49:32 Cris Dywan summary [MainView] applicationName in QML is used wrong MainView.applicationName seemingly confuses QSettings
2013-10-18 14:31:49 Launchpad Janitor branch linked lp:~kalikiana/ubuntu-ui-toolkit/qsettingspath
2013-10-21 14:00:27 Launchpad Janitor branch linked lp:~kalikiana/qtubuntu-sensors/keepvibrator
2013-10-21 14:11:02 Cris Dywan branch unlinked lp:~kalikiana/qtubuntu-sensors/keepvibrator
2014-05-27 15:55:46 Florian Boucault ubuntu-ui-toolkit: status New Confirmed
2014-08-08 07:26:11 Zoltan Balogh ubuntu-ui-toolkit: importance Undecided High
2014-08-08 11:29:49 Launchpad Janitor branch linked lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/organizationDomain
2014-08-08 11:31:09 Cris Dywan ubuntu-ui-toolkit: status Confirmed In Progress
2014-08-20 04:57:37 PS Jenkins bot ubuntu-ui-toolkit: status In Progress Fix Committed
2014-08-26 20:44:09 Launchpad Janitor branch linked lp:ubuntu/utopic-proposed/ubuntu-ui-toolkit
2014-10-01 11:18:36 Zoltan Balogh ubuntu-ui-toolkit: status Fix Committed Fix Released
2015-07-14 07:47:09 Zsombor Egri ubuntu-ui-toolkit (Ubuntu): status New Fix Released