Comment 1 for bug 1232097

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

QML example attached. Save to /tmp/test-accounts.qml and generate an apparmor profile with:
$ aa-easyprof --policy-vendor=ubuntu --policy-version=1.0 --template=ubuntu-sdk --policy-groups=accounts,networking --template-var='@{APP_PKGNAME}=test-accounts' --template-var='@{CLICK_DIR}=/tmp' --template-var='@{APP_VERSION}=1.0' --template-var='@{APP_ID_DBUS}=test_2daccounts' --read-path='/tmp/test-accounts.qml' --profile-name=test-accounts > /tmp/test-accounts.profile

Then launch under confinement with:
$ sudo apparmor_parser -r /tmp/test-accounts.profile && aa-exec-click -p test-accounts -- qmlscene /tmp/test-accounts.qml

launch on its own with:
$ qmlscene /tmp/test-accounts.qml