K3b 2.0 coming to KDE4 mid-2009, Qt forked for port

Changes mean Windows port now possible

K3b: a much loved CD and DVD burning app for KDE and Linux

K3b: a much loved CD and DVD burning app for KDE and Linux

Popular CD and DVD burning application for KDE, K3b is gearing up for its first port to KDE4 with a pending 2.0 release, but part of the Qt toolkit had to be forked to make it possible.

K3b version 1.0 was released for the KDE 3 series in 2007, but since then it has been a non-trivial port to the new KDE4 platform for lead developer Sebastian Trueg.

“Where is it? Well, it is on its way, as it has been for the last few years,” Trueg wrote in a blog post.

Mandriva Linux wanted K3b done for its 2009 Spring release (due April 29, 2009) and assigned two developers on the project part-time reporting to Trueg.

“This was a nice but also wise move,” he said. “Everybody who ever worked on K3b or sent patches knows how protective I am of its code. So by letting two developers work on K3b, Mandriva kind of forced me to work on it too. I am finally enjoying hacking on K3b again.”

If all goes well K3b 2.0 will be released with Mandriva 2009 Spring, but that is not certain because Trueg had to fork Qt's QProcess class to simplify the port.

In KDE 3 KProcess used pipes to communicate which allowed Trueg to implement K3bProcess which was used all over libk3b to pipe data from one process to the other or between processes.

The advantage was high data throughput and unnecessary asynchronous behaviour so “life was good”.

But with KDE4 KProcess became a convenience wrapper around the cross-platform QProcess, which Trueg believes is a “good concept”; however, “the internals of QProcess are hidden and its API is way too high level for K3b’s needs”.

To work around the problem, Trueg tried to change the multi-threaded design of K3b to an asynchronous one, but that didn't work and was “yet another useless coding round”.

“I did not really like the idea since that would mean that data pumping would have to share event cycles with GUI updates and user interaction,” he said.

“So finally I realised that I really needed a fork of QProcess (and with it KProcess since that is what K3bProcess is based upon) and that is what I did.”

By his own admission, Trueg did not change much in QProcess, but the new code does “exactly what I want”.

“Now K3b can pump its data as before and it works swimmingly,” he said. “This whole development took forever, but in the end I think it is clean and fast again. And once Qt Software will include the unbuffered mode in Qt, all communication becomes cross-platform, too (I did only patch the Unix portion).”

The changes made for the KDE4 port may also mean “in theory, at some point” K3b will run on Windows in addition to Linux.

“I already have a patch for Windows support at libk3bdevice level [and] have had that for years now. Only need to apply it. Once my QProcess fork is ported to Windows we are good to go.”

Unfortunately, Trueg has also learned that Qt Software will not implement a blocking API so he will have to maintain the fork.

“The unbuffered mode does only make sense for me if it is blocking, otherwise I am in multi-threading hell again,” he said.

“Too bad, it could have been so easy…”

Join the newsletter!

Error: Please check your email address.
Rocket to Success - Your 10 Tips for Smarter ERP System Selection

Tags Qtmandrivakdek3bQt SoftwareDVDkde4

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Rodney Gedda

Techworld Australia
Show Comments

Father’s Day Gift Guide

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

David Coyle

Brother PocketJet PJ-773 A4 Portable Thermal Printer

I rate the printer as a 5 out of 5 stars as it has been able to fit seamlessly into my busy and mobile lifestyle.

Kurt Hegetschweiler

Brother PocketJet PJ-773 A4 Portable Thermal Printer

It’s perfect for mobile workers. Just take it out — it’s small enough to sit anywhere — turn it on, load a sheet of paper, and start printing.

Matthew Stivala

HP OfficeJet 250 Mobile Printer

The HP OfficeJet 250 Mobile Printer is a great device that fits perfectly into my fast paced and mobile lifestyle. My first impression of the printer itself was how incredibly compact and sleek the device was.

Armand Abogado

HP OfficeJet 250 Mobile Printer

Wireless printing from my iPhone was also a handy feature, the whole experience was quick and seamless with no setup requirements - accessed through the default iOS printing menu options.

Azadeh Williams

HP OfficeJet Pro 8730

A smarter way to print for busy small business owners, combining speedy printing with scanning and copying, making it easier to produce high quality documents and images at a touch of a button.

Andrew Grant

HP OfficeJet Pro 8730

I've had a multifunction printer in the office going on 10 years now. It was a neat bit of kit back in the day -- print, copy, scan, fax -- when printing over WiFi felt a bit like magic. It’s seen better days though and an upgrade’s well overdue. This HP OfficeJet Pro 8730 looks like it ticks all the same boxes: print, copy, scan, and fax. (Really? Does anyone fax anything any more? I guess it's good to know the facility’s there, just in case.) Printing over WiFi is more-or- less standard these days.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?