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

Bug #1227058 reported by Michal Hruby
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Software Center Agent
Triaged
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.

Revision history for this message
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)
description: updated
James Tait (jamestait)
Changed in click-package-index:
importance: Undecided → Low
status: New → Triaged
James Tait (jamestait)
affects: click-package-index → software-center-agent
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.