Closed Bug 759906 Opened 13 years ago Closed 13 years ago

Pass the applications' categories to Firefox

Categories

(Marketplace Graveyard :: General, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED
2012-08-23

People

(Reporter: marco, Assigned: kngo)

References

Details

This is needed for the Linux installer. To add an entry in the applications menu in Linux, you need to know the category (at least on some desktop environments). This is the list of the categories in the freedesktop standard: http://standards.freedesktop.org/menu-spec/latest/apa.html We could add custom categories, so we could add the "WebApps" category. But this would create a difference between web applications and native applications.
Blocks: 744193
What should we doing on the Marketplace side of things? Will there be a change to the navigator.mozApps API to allow a `category` to be passed? Is this a platform bug or Marketplace bug?
I don't know what the best solution would be, maybe a change to the mozApps API is better than a change in the manifest format. The marketplace knows the category of an application, so we wouldn't rely on developers to add this information in the manifest.
I've spoken with Anant, and he suggested to add the category of the application to install_data.
(In reply to Marco Castelluccio from comment #3) > I've spoken with Anant, and he suggested to add the category of the > application to install_data. 1) Is there a bug on the platform side of things (besides bug 744193) to extract the category from `install_data`? 2) Can you file a new bug (à la bug 747283) with suggested copy for the directions on how to launch apps after installation on Linux? Someone brought up an interesting idea that could work for Linux — https://bugzilla.mozilla.org/show_bug.cgi?id=747283#c9 — what do you think of that?
Blocks: 760748
(In reply to Chris Van Wiemeersch [:cvan] from comment #4) > 1) Is there a bug on the platform side of things (besides bug 744193) to > extract the category from `install_data`? I've just filed bug 760748. > 2) Can you file a new bug (à la bug 747283) with suggested copy for the > directions on how to launch apps after installation on Linux? Someone > brought up an interesting idea that could work for Linux — > https://bugzilla.mozilla.org/show_bug.cgi?id=747283#c9 — what do you think > of that? I don't know what Opera does, I'll check tomorrow. However I think Opera widgets are far different from our native web apps. I've filed bug 760750.
No longer blocks: 744193
Priority: -- → P3
Maybe the install_data solution is no longer feasible (see bug 711133).
What is the action on this bug?
Blocks: 766201
No longer blocks: 752013
So on the Marketplace side, we just need to pass the category (or categories) of the webapp through the install function. See bug 760748.
Assignee: nobody → ngoke
Target Milestone: --- → 2012-07-26
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Has the patch already shipped on marketplace.mozilla.org? aParams here (http://mxr.mozilla.org/mozilla-central/source/dom/apps/src/Webapps.js#119) contains only the receipt if I install an application from the Marketplace.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Marco, what needs to change for this to work as expected?
The marketplace needs to pass the categories array just like it passes the receipts array.
Kevin, could you please take a look at this this week?
Target Milestone: 2012-07-26 → 2012-08-23
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
Thank you. I need to fix the Marketplace category names in the Firefox code, where can I find them?
Status: RESOLVED → VERIFIED
(In reply to Marco Castelluccio [:marco] from comment #16) > Thank you. I need to fix the Marketplace category names in the Firefox code, > where can I find them? What do you mean by this?
http://mxr.mozilla.org/mozilla-central/source/toolkit/webapps/WebappsInstaller.jsm#770 Here I assumed those names, are they correct? (I'll use toLowerCase to do the comparison, as the capital letters are wrong)
Ok, I assume they are correct. I've filed bug 796094.
You need to log in before you can comment on or make changes to this bug.