SDK should set applicationName to "name" value in the click manifest
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtcreator-plugin-ubuntu |
Fix Released
|
Critical
|
Juhapekka Piiroinen | ||
qtcreator-plugin-ubuntu (Ubuntu) |
Fix Released
|
High
|
Juhapekka Piiroinen | ||
Saucy |
Fix Released
|
High
|
Juhapekka Piiroinen |
Bug Description
The title says it all, but the background is that there are currently several bugs against the SDK regarding non-app-specific paths being used by applications (eg, bug #1197051, bug #1197056, bug #1224126). This is going to be solved by the SDK examining applicationName in the MainView and appending that to QStandardPaths, which will work with application confinement since it uses apparmor rules like the following:
@{APP_PKGNAME}
...
owner @{HOME}
owner @{HOME}
owner @{HOME}
owner @{HOME}
owner @{HOME}
owner @{HOME}
owner /{,var/
owner /{,var/
APP_PKGNAME is set by the click-apparmor hook and it corresponds to the "name" field in the click manifest.
Right now when creating a new application, it creates this in the qml:
// Note! applicationName needs to match the .desktop filename
application
and this in the click manifest (click the Packaging button on the left and then click the Manifest tab):
"name": "com.ubuntu.
The SDK should be updated to use this in the QML:
// Note! applicationName needs to match the "name" field of the click manifest
application
This should be done for all Ubuntu templates that currently set 'applicationName'.
Ideally, the SDK would warn in the 'Application Output' of qtcreator when applicationName != click manifest name when the app has a click manifest. This will help developers discover problems.
This change can happen immediately and is not dependent on the aforementioned bugs being fixed.
description: | updated |
Changed in qtcreator-plugin-ubuntu (Ubuntu Saucy): | |
importance: | Undecided → High |
Changed in qtcreator-plugin-ubuntu: | |
importance: | Undecided → Critical |
assignee: | nobody → Juhapekka Piiroinen (juhapekka-piiroinen) |
status: | New → In Progress |
Changed in qtcreator-plugin-ubuntu: | |
status: | In Progress → Fix Committed |
Changed in qtcreator-plugin-ubuntu (Ubuntu Saucy): | |
status: | New → In Progress |
assignee: | nobody → Juhapekka Piiroinen (juhapekka-piiroinen) |
Changed in qtcreator-plugin-ubuntu: | |
status: | Fix Committed → Fix Released |
This bug was fixed in the package qtcreator- plugin- ubuntu - 2.7.2-0ubuntu3
--------------- plugin- ubuntu (2.7.2-0ubuntu3) saucy; urgency=low
qtcreator-
* USB Device connection / disconnection detection.
* Refactored Menus.
* Can't set version number in Packaging form (LP: #1212326)
* QtC cuts folder names when building on the device (LP: #1212937)
* Click packages need to exclude the .bzr dir (LP: #1214628)
* Force lower case click package name (LP: #1219877)
* Packaging resets package name, other attributes to default every
time it's opened (LP: #1219948)
* please provide gui for security manifest (LP: #1221407)
* Cannot enable developer mode on read-only image (LP: #1223301)
* Cannot launch application through qtcreator (LP: #1225178)
* Application installation script problems (LP: #1213902)
* Comment field in .desktop file should be generated on the fly
(LP: #1223388)
* SDK should set applicationName to "name" value in the click manifest
(LP: #1227085)
-- Juhapekka Piiroinen <email address hidden> Wed, 18 Sep 2013 15:36:58 +0300