Projekt: | Trisquel |
Version: | 6.0 |
Komponente: | Programs |
Kategorie: | Leistungsmerkmalanfrage |
Priorität: | normal |
Zugewiesen: | nicht zugewiesen |
Status: | patch (needs review) |
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.
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
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.
And here's a working firefox-kde-support package for Abrowser.