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…”
Latest on Development Tools
- Google bows out of JavaOne due to lawsuit
- Microsoft won't stop .Net on Android
- Eucalyptus strengthens its back end
- Canonical takes a step in bringing Ubuntu to tablets
- KDE innovation still brewing amid stable 4.5 release
- Open source Ruby, Python hit rocky ground at Microsoft
- Perl creator hints at imminent Perl 6 release
- OSCON: Open source lazy about social Web services
- OpenSUSE 11.3 released with two netbook options
- CouchDB NoSQL database ready for production use
Open Source Essentials
- Microsoft 'interested' in open source browser: Ballmer
- Flying high with open source
- Open sourcing code may improve transparency on Wall Street
- Problem-solvers hunt open-source solutions
- Open source advocates hail appeals court ruling
- Open-source software a security risk, study claims
- Insurance company bets health on open source
- Open source stack solid foundation for All Homes
- 20 great Windows open source projects you should get to know
- Via releases laptop design as open source
- WebSphere Solution Design (S20) - CBD, contract role3/09/2010
Other
I.T. & T
WebSphere Solution Design (S20) - CBD, contract role - Solution Architect - Web Application Architecture Project!3/09/2010
Other
I.T. & T
Solution Architect to provide strategic and operational consulting for the end-to-end Web Application System project! Experienced with J2EE or .NET?! - Principal Consultant - ITIL2/09/2010
Other
I.T. & T
Excellent opportunity for an experienced ITIL Principal Consultant to join an innovative leading IT Service management consultancy. Attractive packag - Mainframe Developer - COBOL - 12 Month Contract2/09/2010
Other
I.T. & T
Mainframe Developer - COBOL - 12 Month Contract - Business Systems Analyst2/09/2010
Other
I.T. & T
Perm CBD based role for an experienced Business Systems Analyst - Senior SAP Project Manager2/09/2010
Other
I.T. & T
Senior SAP Project Manager - SAP FICO Consultant - 6 week contract - West Sydney2/09/2010
Other
I.T. & T
SAP FICO Consultant - 6 week contract - West Sydney
TechWorld Blogs
Recent blog posts
- Windows Phone 7: how big can it get?
- NBN gets a turn at political football
- Internet filter gets caught up in politics
- TechWorld Forums goes live
- Selective sourcing the hybrid of cloud services
- Social networks catch more business attention
- RIP Kin
- Telstra’s copper and NBN’s fibre: will the two ends meet?
- RIP Windows 2000, XP lives on
- Does the world need another iPhone? Why not
Recent comments
- java development
12 hours 25 min ago - When mine called they
13 hours 8 min ago - 3D TV cannot fall - no way! Why?
16 hours 22 min ago - Thanks for taking the time to
1 day 4 hours ago - Windows scam
1 day 12 hours ago - My only anti fraud method is
2 days 6 hours ago - Private Cloud Taxonomies
2 days 7 hours ago - ...however...
2 days 16 hours ago - This Guy
2 days 16 hours ago - Glasses Free technology
2 days 17 hours ago - FOSS community
3 days 48 sec ago - i have dv6000 with nvidia
3 days 1 hour ago - i have dv6000 and suddenly
3 days 1 hour ago - This is an awesome comment.
3 days 5 hours ago - Real Estate
3 days 7 hours ago - Scam - eventvwr scammers
3 days 11 hours ago - Well I never...
5 days 1 hour ago - Too bad Microsoft was mentioned
5 days 4 hours ago - Phone card is a better option to make calls at a lower rate
5 days 8 hours ago - In other words: "Developers,
5 days 14 hours ago










Comments
hi
I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often.
Ruth
http://systemmemory.info
You always can do a blocking component from a non blocking one
You always can do a blocking component from a non blocking one by using locks and events/conditions. That would be a much cleaner and easier solution to this problem.
"BLOG"
The whole article is just a quote wrapper about Trueg's blog post: http://trueg.wordpress.com/2009/03/23/intermission-why-i-needed-to-fork-...
Kind of lame techworld
I agree with the first post.
I agree with the first post. One class was forked. The writer does not seem to have clue
Saying that Qt was forked for
Saying that Qt was forked for the port is gross exaggeration. There was simply one class which was no longer suitable for the job, so Trueg implemented the old functionality. It happens very often that developers will take some piece of upstream code and maintain a patched version in their source tree for guaranteed functionality.
Post new comment