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.
[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
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 ERROR:cache_ creator. cc(133) ] Unable to create cache 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 ERROR:cache_ creator. cc(133) ] Unable to create cache ERROR:shader_ disk_cache. cc(614) ] Shader Cache Creation failed: -2
[0323/175358:
[0323/175358:
[0323/175358:
[0323/175358:
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