qtcreator uses the old click manifest format which is incompatible with click hooks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtcreator (Ubuntu) |
Fix Released
|
Critical
|
Juhapekka Piiroinen | ||
Saucy |
Fix Released
|
Critical
|
Juhapekka Piiroinen |
Bug Description
After talking with people on #ubuntu-touch and that their click packages that were created by qtcreator did not work correctly, I examined the manifest noticed that qtcreator is creating the old format of the click manifest which is incompatible with click hooks as defined in click 0.2 and later. This can clearly be see in the Packaging tab of qtcreator, and clicking 'Advanced'. The format is documented here:
http://
https:/
Specifically, the 'security' section has been removed. In its place is the 'hooks' security with entries for each application shipped by the app and 'apparmor' and 'desktop' hooks specified under it. The apparmor hook specifies a file relative to the toplevel of the package that contains the security manifest json (which is formatted differently than what is currently in qtcreator). What needs to happen is that the security click manifest moved to a new file and that the click manifest needs to reference it.
For example, if I create an app called 'lp1214623-
{
...
"name": "com.ubuntu.
"security": {
"profiles": {
],
}
}
},
"version": "0.1"
}
A corrected manifest would be:
{
...
"name": "com.ubuntu.
"hooks": {
}
},
"version": "0.1"
}
The "desktop" hook should reference the desktop file associated with the "lp1214623-
The "apparmor" hook should reference the json security manifest associated with the "lp1214623-
{
"policy_
],
"policy_
}
This means that the Packaging tab will need to accommodate at least two files: the click manifest and the security manifest. Also note that while I suggest putting the security manifest in the apparmor directory, it doesn't have to be. Eg, you could put it in "lp1214623-
{
...
"hooks": {
...
}
When fixing this bug, you will likely want to fix bug #1214618 at the same time (apparmor policy_version is incorrectly set).
Related branches
Changed in qtcreator (Ubuntu Saucy): | |
importance: | Undecided → Critical |
tags: | added: appstore |
Changed in qtcreator (Ubuntu Saucy): | |
status: | New → Confirmed |
assignee: | nobody → Juhapekka Piiroinen (juhapekka-piiroinen) |
Changed in qtcreator (Ubuntu Saucy): | |
status: | Confirmed → Fix Committed |
Marking as 'Critical' because Click packages created with QtCreator will not work properly until this bug is fixed.