SDK should set applicationName to "name" value in the click manifest

Bug #1227085 reported by Jamie Strandboge
6
This bug affects 1 person
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}="ar.com.beuno.hello-world"
...
  owner @{HOME}/.cache/@{APP_PKGNAME}/ rw, # subdir of XDG_CACHE_HOME
  owner @{HOME}/.cache/@{APP_PKGNAME}/** mrwkl,
  owner @{HOME}/.config/@{APP_PKGNAME}/ rw, # subdir of XDG_CONFIG_HOME
  owner @{HOME}/.config/@{APP_PKGNAME}/** mrwkl,
  owner @{HOME}/.local/share/@{APP_PKGNAME}/ rw, # subdir of XDG_DATA_HOME
  owner @{HOME}/.local/share/@{APP_PKGNAME}/** mrwklix,
  owner /{,var/}run/user/*/confined/@{APP_PKGNAME}/ rw, # subdir of XDG_RUNTIME_DIR
  owner /{,var/}run/user/*/confined/@{APP_PKGNAME}/** mrwkl,

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
    applicationName: "untitled2"

and this in the click manifest (click the Packaging button on the left and then click the Manifest tab):
    "name": "com.ubuntu.developer.jdstrand.untitled2",

The SDK should be updated to use this in the QML:
    // Note! applicationName needs to match the "name" field of the click manifest
    applicationName: "com.ubuntu.developer.jdstrand.untitled2"

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)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtcreator-plugin-ubuntu - 2.7.2-0ubuntu3

---------------
qtcreator-plugin-ubuntu (2.7.2-0ubuntu3) saucy; urgency=low

  * 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

Changed in qtcreator-plugin-ubuntu (Ubuntu Saucy):
status: In Progress → Fix Released
Changed in qtcreator-plugin-ubuntu:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.