Add OpenSUSE's Firefox KDE patches to Abrowser

Projet:Trisquel
Version:6.0
Composant:Programs
Catégorie:Demande d'amélioration
Priorité:normal
Attribué:Non assigné
Statut:patch (needs review)
Description

Firefox/Abrowser doesn't have very good integration with KDE. For this reason the OpenSUSE Firefox maintainers have made patches that add proper mimetype support, KDE file dialogs, etc. Canonical used to apply these patches, but removed them in 12.04. It would be great if Trisquel applies these patches.

The patches are located at https://build.opensuse.org/package/show?package=MozillaFirefox&project=openSUSE%3AFactory. I think the necessary files are mozilla-kde.patch, firefox-kde.patch, and kde.js. The only change necessary is replacing MozillaFirefox (firefox-kde.patch:1289) with abrowser. (It depends on the .desktop filename). I will test this tonight.

lun, 01/27/2014 - 02:16
Statut:active» patch (needs review)
lun, 01/27/2014 - 19:19

Also a package called kmozillahelper is required, in addition to the patches. A debian packaging of it can be found in the PPA at https://launchpad.net/~blue-shell/+archive/firefox-kde. The upstream source code is here: https://build.opensuse.org/package/show/openSUSE/mozilla-kde4-integration.

So, after applying the patches and installing kmozillahelper, my Abrowser is integrated with KDE. I have attached the patches below (I modified mozilla-kde.patch a little)

Also two lines should be added to the pre-build target in the rules file:
mkdir -p $(MOZ_DISTDIR)/bin/defaults/pref/
cp $(CURDIR)/debian/kde.js $(MOZ_DISTDIR)/bin/defaults/pref/kde.js

Pièce jointeTaille
firefox-kde.patch 77.64 Ko
mozilla-kde.patch 129.75 Ko
kde.js_.txt (rename to kde.js) 49 octets
sam, 02/22/2014 - 05:07

Here are the patches updated for Abrowser 27, with the modified rules and series files.

Of course, the kmozillahelper (or firefox-kde-support) is also needed and must be rebranded.

Pièce jointeTaille
abrowser27-kde-patches.tar_.gz 45.33 Ko
sam, 02/22/2014 - 05:27

And here's a working firefox-kde-support package for Abrowser.

Pièce jointeTaille
firefox-kde-support_0.6.4~git20130318+5-0ubuntu0~ppa5~precise1.1+6.0trisquel1.tar_.gz 10.43 Ko
firefox-kde-support_0.6.4~git20130318+5-0ubuntu0~ppa5~precise1.dsc_.txt 902 octets