Comment 0 for bug 1435778

Revision history for this message
Oliver Grawert (ogra) wrote :

trying to use an external config for some global settings in an app framework it turns out that you can not set the "applicationName" property of a MainView from an external variable ... it seems like the qml/js imports are only processed after the APP_ID was handed to the lifecycle management.

using either an imported .js file or a singleton imported from a qml file like in http://paste.ubuntu.com/10667313/ and http://paste.ubuntu.com/10667782/ always results in the following errors in the application log:

[0323/175358:ERROR:cache_util.cc(132)] Unable to move cache folder /home/phablet/.cache/QtProject/foo-bar.ogra/Cache to /home/phablet/.cache/QtProject/foo-bar.ogra/old_Cache_000
[0323/175358:ERROR:cache_creator.cc(133)] Unable to create cache
[0323/175358:ERROR:cache_util.cc(132)] Unable to move cache folder /home/phablet/.local/share/QtProject/foo-bar.ogra/GPUCache to /home/phablet/.local/share/QtProject/foo-bar.ogra/old_GPUCache_000
[0323/175358:ERROR:cache_creator.cc(133)] Unable to create cache
[0323/175358:ERROR:shader_disk_cache.cc(614)] Shader Cache Creation failed: -2

additionally apparmor denials can be seen for the same path (as expected, an app should not try to create something out of its namespace) in /var/log/syslog