Looking for saved searches? click on "Search Bugs" above.

prism on ubuntu should be in menu, have icons, file associations, etc.

RESOLVED WORKSFORME

Status

Mozilla Labs
Prism
--
enhancement
RESOLVED WORKSFORME
10 years ago
10 years ago

People

(Reporter: rhelmer, Unassigned)

Tracking

Details

(URL)

Attachments

(2 attachments, 1 obsolete attachment)

(Reporter)

Description

10 years ago
Created attachment 288465 [details] [diff] [review]
debian packaging for prism, tested on ubuntu gutsy

It'd be nice if, after installing prism on ubuntu, I could find it in the menus, and double-click on .webapp files (which would have a nice prism icon).

I think that the best way to do this is to provide a .deb package. I've hacked up a sample at:
http://roberthelmer.com/prism_0.8_i386.deb

Ubuntu users using the default Firefox install will be prompted to install this package, and it'll automatically pull in dependencies (currently only xulrunner-1.9).
Attachment #288465 - Flags: review?(mark.finkle)
(Reporter)

Comment 1

10 years ago
A couple things I should point out about this patch:

* Only tested using GNOME but uses the freedesktop.org standards, may need tweaking for e.g. KDE

* I made the mimetype for webapps "application/vnd.webapp". totally arbitrary decision, please suggest something better :)

* note that there are two desktop entries; one is for running "prism" straight from the menus, the other is hidden and is for running webapps with "prism -webapp %F". This seems to work ok, but somehow Firefox picks the wrong one, so you can't easily launch .webapp files from a URL :( I need to figure out how Firefox 2.x on Ubuntu resolves mimetypes, as this works fine in the file manager.
Rob - This is really great. Thanks

Just some notes:
* Move to "app/install/debian"
* Change to "applicatio/vnd.mozilla.webapp"
* Change to "http://wiki.mozilla.org/Prism"
(Reporter)

Comment 3

10 years ago
Created attachment 288573 [details] [diff] [review]
debian packaging for prism, take 2

* Moved to "install/debian"
* Changed mime type to "application/vnd.mozilla.webapp"
* Changed URL in control and rules to "http://wiki.mozilla.org/Prism"

Also updated the example deb on http://roberthelmer.com/prism_0.8_i386.deb
Attachment #288465 - Attachment is obsolete: true
Attachment #288573 - Flags: review?(mark.finkle)
Attachment #288465 - Flags: review?(mark.finkle)
(Reporter)

Comment 4

10 years ago
After discussing with asac and Ubulette on freenode/#ubuntu-mozillateam, I think it'd be best to help merge these changes to the work that already started on 0.7:

https://code.edge.launchpad.net/prism

There are some things we can do on the SVN side to make this easier:

1) simple build system that can handle "make install --prefix"
2) break .ico icons into set of png and/or xpm icons
3) generate and publish source tarball on releases (we can have a makefile target to make it easier for us)
4) clear copyright statement

I'll work with Ubulette to get the patches I have posted into the bzr branch, and work on the above if that sounds ok Mark.
(Reporter)

Updated

10 years ago
Attachment #288573 - Flags: review?(mark.finkle)
(In reply to comment #4)
> 3) generate and publish source tarball on releases (we can have a makefile
> target to make it easier for us)
I think this should be covered by bug#401936 and bug#170779. Or is there something else needed that I've missed?
(In reply to comment #5)
> (In reply to comment #4)
> > 3) generate and publish source tarball on releases (we can have a makefile
> > target to make it easier for us)
> I think this should be covered by bug#401936 and bug#170779. Or is there
> something else needed that I've missed?
> 

This is about the Prism source, AFAIK. Not Firefox/Thunderbird.
(In reply to comment #6)
> (In reply to comment #5)
> > (In reply to comment #4)
> > > 3) generate and publish source tarball on releases (we can have a makefile
> > > target to make it easier for us)
> > I think this should be covered by bug#401936 and bug#170779. Or is there
> > something else needed that I've missed?
> This is about the Prism source, AFAIK. Not Firefox/Thunderbird.

Ah, sorry for the confusion. My bad.
(Reporter)

Comment 8

10 years ago
Created attachment 288750 [details] [diff] [review]
super basic build system and LICENSE file

This adds a LICENSE file (containing copies of the MPL, GPL and LGPL). I customized the MPL EXHIBIT A, not sure if it's ok to stick all the licenses together in the same file like this but I've seen it done before.

Also, super simple install/Makefile. Can be used like:
# create binary and source tarball in ../build
make release
# install to custom location
make install PREFIX=/opt/prism

Default target ("make") runs clean and then creates ../build/prism-0.8/ directory (version is hardcoded in file, overridable with VERSION var).
Attachment #288750 - Flags: review?(mark.finkle)
(Reporter)

Comment 9

10 years ago
Comment on attachment 288750 [details] [diff] [review]
super basic build system and LICENSE file

There's a better build system in place for prism now, and pretty sure Fabian has taken what he needs from this example
Attachment #288750 - Flags: review?(mark.finkle)
(Reporter)

Comment 10

10 years ago
Let me know if any part of this bug is still needed; seems like it's underway by Ubuntu Mozilla Team.
Status: NEW → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.