Tuesday, September 29, 2009

Linux HTMLViewer now uses WebKit

With REALbasic 2009 Release 4 we've finally updated the HTMLViewer on Linux to use WebKit if it's available. This has been a long requested feature and we're happy to finally deliver this to you, but the unfortunate part of this is that WebKit is not typically installed by default by any of the major Linux distros. However, the WebKit libraries are easily accessible, and are usually included in the Linux distros' DVD/CD download. For those not as familiar with installing new packages on Linux, I offer this basic tutorial for Ubuntu users. I like to use the Synaptic Package Manager to find and install packages that are on my Ubuntu DVD/CD, here's how:

Once that is loaded, you can now search for WebKit. Knowing that WebKit is a library I prepend my search of WebKit with Lib, so instead of just searching for webkit (which actually turns up quite a few hits), I'll search for libwebkit:

You want to mark the first hit of libwebkit-1.0-1 for installation, then apply. For those who like the command line approach, you can launch the terminal and type:
sudo apt-get install libwebkit-1.0-1

You are now ready to enjoy the new HTMLViewer using WebKit!


Alexei said...

Thanks. It's really great news. I've tried using the new htmlviewer on Linux Mint 7 (based on Ubuntu 9.04) and while it worked fine when I loaded a page from code via a string, it crashed when I tried to load a url with the LoadUrl method (a segmentation fault).

I wanted to file a bug report, intalled the Feedback application, but when I launched it said I had no license key and I saw no way to add a new report.

Rush said...

Sounds really good! Will it automatically support newer versions of Webkit?
I'm looking for HTML5 embedded video support and it seems thats only supported in later versions. The one usually found in the package repository is libwebkit-1.0-1 but lacks this functionality.

Geoff Perlman said...

As long as they are updates to 1.x of WebKit, they should just work. However, once they have a 2.0 release of WebKit, all bets are off. We would likely have to update our support for WebKit at that point.

Anonymous said...

Good news, but I wish you would use webkit for all platforms: this would allow you to feasibly spend time to develop an API to let RB interact with the DOM in real time in apps. (Like you can in .NET and the embedded (IE) browser.)

William Yu said...

It looks like Ubuntu 9.10 does install webkit by default. I haven't tried any of the other 9.x versions so maybe all the 9.x versions include webkit now...