[Bug 467729] RFE: Add font autoinstallation support

bugzilla-daemon at mozilla.org bugzilla-daemon at mozilla.org
Sun Dec 23 12:59:22 UTC 2012


Do not reply to this email. You can add comments to this bug at
https://bugzilla.mozilla.org/show_bug.cgi?id=467729

Frédéric Wang (:fredw) <fred.wang at free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jfkthame at gmail.com

--- Comment #4 from Frédéric Wang (:fredw) <fred.wang at free.fr> 2012-12-23 04:59:22 PST ---
I've done some investigations on PackageKit (http://www.packagekit.org/). If I
understand correctly, there seem to be several ways to use it
(http://www.packagekit.org/pk-using.html): via the GIO library
(http://www.packagekit.org/files/session.c), the libpackagekit library or the
raw DBus API. The Mozilla codebase contains some parts relying on the GIO
library and other parts on DBus.

It seems to me that the package names are likely to depend on the Linux
distributions. Also, I'm wondering if it would be best to use a high-level API
(more convenient to use) or the low-level API (to support more platforms).

On the stable Debian version, I see a SessionInstaller package that implements
the PackageKit DBus API but does not use libpackagekit (PackageKit is said to
be available in the next Debian version but I don't know which package will be
used by default). Similarly, I'm wondering if the PackageKit's DBus API is
available on mobile platforms and thus would help to solve related bugs like
bug 619521 and but 648548. The low-level DBus API seems to be used in FirefoxOS
to implement stuff like Bluetooth support etc

BTW, here is the PackageKit DBus API. The basic idea would be to use
PackageKit's CreateTransaction and call InstallPackages on the returned object,
wait and force a reflow when the fonts are installed.
http://www.packagekit.org/gtk-doc/api-reference.html
http://gitorious.org/packagekit/packagekit/blobs/master/src/org.freedesktop.PackageKit.xml
http://gitorious.org/packagekit/packagekit/blobs/master/src/org.freedesktop.PackageKit.Transaction.xml

-- 
Configure bugmail: https://bugzilla.mozilla.org/userprefs.cgi?tab=email

-------------------------------
Product/Component: Firefox :: General


------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the fonts-bugs mailing list