Add OpenSUSE's Firefox KDE patches to Abrowser

Projekt:Trisquel
Version:6.0
Komponente:Programs
Kategorie:Leistungsmerkmalanfrage
Priorität:normal
Zugewiesen:nicht zugewiesen
Status:patch (needs review)
Beschreibung

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.

Mo, 01/27/2014 - 02:16
Status:active» patch (needs review)
Mo, 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

AnhangGröße
firefox-kde.patch 77.64 KB
mozilla-kde.patch 129.75 KB
kde.js_.txt (rename to kde.js) 49 Bytes
Sa, 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.

AnhangGröße
abrowser27-kde-patches.tar_.gz 45.33 KB
Sa, 02/22/2014 - 05:27