Turn X-Ubuntu-Touch in generated .desktop file from a separate key to a Category

Bug #1227058 reported by Michal Hruby on 2013-09-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Software Center Agent
Low
Unassigned

Bug Description

Currently .desktop files generated from the click manifest include a `X-Ubuntu-Touch=true` key, this key isn't indexed by existing libraries, therefore we'd like it changed to a category `Categories=X-UbuntuTouch;` (note that this key can contain list of categories, not just one).

As course we can keep both if there are other tools already looking for the X-Ubuntu-Touch key.

James Tait (jamestait) wrote :

I'd like to clarify this requirement:

What we're expecting is that when a com.ubuntu.developer.SOMEDEV.SOMEAPP_0.1_unknown.click package is uploaded with a .desktop file that contains an entry X-Ubuntu-Touch=True:

[Desktop Entry]
Name=SOMEAPP
Comment=My awesome app.
Exec=qmlscene $@ myapp.qml
Icon=myapp.png
Terminal=false
Type=Application
X-Ubuntu-Touch=true

Then Software Centre/Click Updown/Click Package Index should parse the desktop file and convert that to a category, such that search.apps.ubuntu.com/api/v1/package/com.ubuntu.developer.SOMEDEV.SOMEAPP contains an entry "categories": [ ... "X-UbuntuTouch", ...]:

{
  "description": "My awesome app.",
  "license": "GNU GPL v3",
  "title": "SOMEAPP",
  "download_url": "https://public.apps.ubuntu.com/download/com.ubuntu.developer.SOMEDEV/SOMEAPP/com.ubuntu.developer.SOMEDEV.SOMEAPP_0.1_unknown.click",
  "click_version": "0.4",
  "version": "0.1",
  "framework": [
    "ubuntu-sdk-13.10"
  ],
  "name": "com.ubuntu.developer.SOMEDEV.SOMEAPP",
  "categories": [
    "X-UbuntuTouch"
  ]
}

Does that sound about right?

James Tait (jamestait) on 2013-10-01
description: updated
James Tait (jamestait) on 2014-03-06
Changed in click-package-index:
importance: Undecided → Low
status: New → Triaged
James Tait (jamestait) on 2014-07-23
affects: click-package-index → software-center-agent
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers