LXDE Previews Port From Gtk+ 2 to Qt 136
An anonymous reader writes "As the PCMan at the LXDE blog lets us know, the work on a port of LXDE to the Qt platform is showing promise. As the developers stand to face the deprecation of Gtk+ 2, migrating away from the popular toolkit will soon be necessary. The developers note that migration to Qt 'will cause mild elevation of memory usage compared to the old Gtk+ 2 version,' but clarify that a similar increase in resource usage is expected of a migration to Gtk+ 3. Yet, the port to Qt is ongoing, and clearly taking shape, as the screenshot shows. An official release might be a while, though. As an update to the post notes, the plan is to use the recently released Qt 5.1 in the future, which we might not see in distros for some time."
They are also cooperating with the Razor Qt desktop. From the weblog post: "...We subscribed razor-qt google groups and discussed about possible cooperation earlier. Currently, the ported LXDE components are designed with Razor-Qt in mind. For example, PCManFM-Qt and LxImage-Qt will reads razor-qt config file when running in razor-qt session. We’ll try to keep the interchangeability between the two DEs. Further integration is also possible. Actually, I personally am running a mixed desktop with LXDE-Qt + Razor-Qt components on my laptop. Components from the both DE blends well."
Hmmmmmmmmm (Score:2)
Re: (Score:2)
http://blog.lxde.org/?p=990 [lxde.org]
Re:Hmmmmmmmmm (Score:4, Insightful)
I already have QT and such installed on my LXDE machine due to a couple of KDE apps I fell in love with. They work fine under Openbox/LXDE, so shouldn't be much of a problem to convert over to the new QT based DE.
The problem isn't running QT based apps under Openbox/LXDE. The problem is rewriting LXDE componets to use QT to draw to the screen instead of GTK2. They are basically rewriting the panels and all the other components to call QT libraries instead of GTK2 libraries.
Re: (Score:2)
On the other hand, I have no Qt apps installed, and no particular interest in any Qt apps I've heard of, and I'm not going to install Qt just for the sake of a jumped-up window manager. So this pretty much removes LXDE from the list of WMs/DEs I'm likely to try.
Re: (Score:2)
I was in the same boat but I finally adopted VLC as my media player and it depends on the basic Qt libraries. It is so much faster to start and uses the least memory of any video player, for GTK+ or Qt. It really proves to me that Qt code can run just as fast as GTK code, even on a primarily GTK machine.
Also bear in mind that LXDE has not yet announced any plans to drop GTK support, but GTK3 team has been openly dismissive of anyone not developing for Gnome in specific, so it may be inevitable.
Re: (Score:2)
I am way too much in love with the power and flexibility of gstreamer. VLC is what I recommend for my friends who use Win or Mac, but for my own style of random hacking around, gstreamer is a better fit.
Why QT over GTK 3 ? (Score:5, Interesting)
Serious question, I'm assuming that there was a specific reason for going with QT and not GTK3; anyone know why?
Re: (Score:3)
I've heard the Gtk3 devs are actively trying to prevent their stuff from being used outside of apps intended for GNOME 3 itself.
Not sure how true that is though.
Re:Why QT over GTK 3 ? (Score:5, Informative)
XFCE is doing fine with the transition so I assume it wasn't too much of a problem. Also I quoted the guy who made the switch for LXDE and he didn't mention that issue. He mostly thinks that GTK3 is the same weight at Qt and since he liked Qt better once they were the same weight it became the better choice. Since GTK3 isn't that similar to 2 it was roughly an equal porting effort and that's why he switched.
Re: (Score:2)
Re: (Score:3)
Re: (Score:1)
What do you mean? You should be able to run gtk3 run fine on any distribution. It doesn't matter one bit if that is some Qt based distro (KDE/whatever), some Gtk based distro (whatever version, 1.x, 2.x, 3.x) or whatever else.
Re: (Score:3)
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
Hmm....GIMP depends on GTK....which stands for GIMP Took Kit....
A lot of programs (looking at the GNOME DE) do have issues due to naming - which is why the MATE project had to change the program names.
Re: (Score:2)
Re: (Score:2)
I've heard the Gtk3 devs are actively trying to prevent their stuff from being used outside of apps intended for GNOME 3 itself.
Not sure how true that is though.
I don't think that the Gtk3 devs are trying to prevent others from using their stuff, but Gtk3 is actively being developed to suppoert Gnome 3 and particularly gnome-shell. As such, there are lost of changes from one release to the next of Gtk3 that are not backward compatible. That is fine for Gnome 3, but not for others trying to use the libs.
It is anticipated that eventually, the changes will settle down and things will stabalize, but right now, GTK3 is a moving target. Since desktop environments like LX
Re: (Score:2)
That is not true. The only changes that are invasive is for themes. However, that is due to the move to css for themes and once that is done, it'll be easier to theme things. So aim is not to make things difficult, but unfortunately to make things easier it sometimes is more difficult temporarily.
Re: (Score:1)
https://mail.gnome.org/archives/gtk-list/2012-November/msg00044.html [gnome.org]
Re: (Score:1)
However, I suspect that sooner or later, everything will depend on it, and unless we introduce forks of udev, we'll be stuck with it, just like many distros are with pulse audio, which I really do hate. It is my contention that "pulse" stands for Pretty Useless Load of Supe
Even worse.. (Score:3)
If they simply stated than GTK should be considered a gnome component versus gnome independent, that doesn't necessarily bother me as it is a game of semantics. However, the key sentiment that strikes me as counter-productive:
"You can't just write something for 3.0 (be it an application, a shell plugin or a GTK theme) and expect it stay working that way forever. Instead you need to constantly improve on your work."
Which is a huge 'screw you' to backwards compatibility. To say that reworking perfectly wor
Re:Why QT over GTK 3 ? (Score:5, Interesting)
I don't know who "PCMan" is on the LXDE team but he is the author and here is what he wrote
Re: (Score:3)
Re:Why QT over GTK 3 ? (Score:4, Informative)
Re: (Score:2)
This is a fairly balanced statement (I especially like the "if you don't hate C++"). But it's also obviously a subjective experience, and YMMV.
I found Vala/Genie to be an amazing development experience: C#/Python-like linguistics, but with the true C ABI, with automatic wrapping for dynamic languages. GObject is ingenious! But it is also true that Vala is still in beta: some bindings might be broken, and Genie has some serious linguistic failings, but it's not a big deal to fall back to C when nothing el
Re: (Score:2)
Re: (Score:2)
Appears so: http://wiki.lxde.org/en/PCManFM [lxde.org]
Re:Why QT over GTK 3 ? (Score:5, Insightful)
Both QT and GTK3 are fine GUI development environments. However, the GTK team doesn't have a commitment to maintaining backwards compatibility, which means if you write your code for GTK3, you can expect to rewrite it in a few years, with little real benefit. When choosing between two decent platforms, why not choose the platform that is more stable?
Re: (Score:1)
Can you give a reference to where you found that GTK 3.x wouldn't provide backwards compatibility? This as it should.
Re:Why QT over GTK 3 ? (Score:4, Informative)
Can you give a reference to where you found that GTK 3.x wouldn't provide backwards compatibility?
Sure. I strongly recommend clicking on this link [gnome.org] from the summary, where you will find this sentence in the first paragraph: "GTK+ 3 is a major new version of GTK+ that breaks both API and ABI compared to GTK+ 2.x." It then goes on to discuss in more detail the changes that will break compatibility.
Re: (Score:3)
Yeah and GTK+ 2.x was API/ABI incompatible with GTK+ 1.x, pretty much setting an expectation that the whole thing will be overhauled approximately once a decade. So whenever GTK+ 4.0 is out, your 3.x apps likely won't just compile+run as-is in the new version, but there's no reason you can't have all the older libraries installed at the same time.
GTK+ 2.x apps aren't magically breaking and GTK+ 3.x apps won't magically break either.
Re: (Score:2)
Re: (Score:2)
The problem is that GTK3 has utilities which are names the same as GTK2, so you can't have both installed at the same time.
Re: (Score:2)
Re: (Score:2)
True, but it does complicate things. Seriously, if you're going to provide a tool with incompatible functionality, at least name it something different. At the minimum append a version number.
Re: (Score:2)
Re: (Score:2)
GTK+ 2.x apps aren't magically breaking and GTK+ 3.x apps won't magically break either.
Obviously you haven't tried to take source code written for GTK2 and recompile it agains GTK3. It may not be magically broken, but it is definitley broken.
Re: (Score:2)
Re: (Score:1)
What annoys me is how themes break between minor versions with GTK. I'm sick to death of GTK and have been for 8-9 years. GTK was never meant to be used the way it has been. It was the Gimp Toolkit and nothing more until the Gnome devs came along and bastardized the whole thing and laid hack upon hack on it until they sorta got it to work. Time to flush the turd.
Re: (Score:2)
Terrible argument.
There was no argument at all in the post you replied to. It was all presentation of fact.
Re: (Score:2)
Re: (Score:2)
Arguing over lack of API stability, while still 2.x versions are being released plus this is the first API change in 10+ years, think your expectations are a bit off.
I'm not arguing over API instability. I don't care if you want to consider it stable or not, good for you.
I'm saying that given a choice between a platform that makes me rewrite things every decade (or more), and a platform that doesn't, I will choose the one that doesn't.
Re: (Score:1)
The Qt toolkit is object-oriented (making it nicely modular) and has a nicer API. Plus Qt makes it easier to port software to other platforms. The Qt devs also appear to be making it easier to port applications between versions where GTK seems to take bigger leaps. Really, if you need to transitio, or start from scratch, Qt has a lot of little points in its favour.
Re: (Score:2)
OTOH, it's easier to interface other languages to libraries written in C. And Qt is owned by Noika, which isn't currently a big improvement over Oracle. (Trolltech was, and was dependable. I'm not at all convinced that Noika is. OTOH, they currently seem to be less actively antagonistic towards end users than do the Gnome developers...though I will grant you this is purely a personal perception, and not objective.)
Re: (Score:2)
Serious question, I'm assuming that there was a specific reason for going with QT and not GTK3; anyone know why?
Feeping creaturism and bloat? Per TFA, QT is getting to have a smaller footprint than GTK3.
Why LXDE/Qt over Razor? (Score:3)
From a user standpoint, I have a different question, or a variation of this one. Why would anyone who needs a Qt based environment prefer LXDE, which is just beginning now, over Razor-qt, which has been around a bit and has a considerable headstart? Although I'd welcome these 2 merging, if that's what happens.
Re: (Score:2)
I think your premise is wrong. LXDE is way ahead of Razor-qt. LXDE is undergoing a change of widget sets that's a much easier task then Razor developing an entire desktop layer that LXDE already has. LXDE is one of the 4 main open source GUIs, there are solid distributions which use LXDE as their environment. Qt is just a widget set for LXDE. I think merger makes sense and the Razor code might speed up LXDE's migration. But that's all Razor codebase can offer some code for some components that might
Re: (Score:2)
Which would wonderful to see that level of cooperation, and some great things could result. RazorQT is very close to what i want from a DE, and LXDE works pretty well too (I'm a fan of QT over GTK).
The only thing missing... (Score:1)
....Is a world class browser that uses QT. Firefox and Chrome both stick out like sore thumbs with some QT themes (like Oxygen-transparent).
If I'm forced to have gtk+ on my system, might as well make use of it.
Re:The only thing missing... (Score:4, Insightful)
Re: (Score:3, Interesting)
Personally I hate the Qt APi. It has its uses. The cross platform capabilities are a lot better and it has a lot of functionality built-in that you can only get as separate external libraries with GTK+. But I disagree that it is better to program for. GObject may be verbose but to me the object model, class hierarchies, etc make a lot more sense.
Re: (Score:2)
Personally I hate the Qt APi
Why? Its an API. Stiil, that said, it makes more sense to me than others, GTKMM included. Even though similar I tend to remember Qt apis better for some reason.
Re: (Score:1)
My shop had to move from the X/Motif toolkit to something else. It would port easily to anything that provided a void *user_arg to routines that allowed information to be passed into callbacks. GTK provided this, QT did not.
Going to GTK was a port. Going to QT would have been a rewrite, actually a complete redesign.
We went with GTK and never looked back. However because of the changes in GTK 3 we will probably be sticking with GTK 2 for the next decade or two.
Re: (Score:2)
Personally I hate the Qt APi. It has its uses. The cross platform capabilities are a lot better and it has a lot of functionality built-in that you can only get as separate external libraries with GTK+. But I disagree that it is better to program for. GObject may be verbose but to me the object model, class hierarchies, etc make a lot more sense.
I possibly didn't fully understand your comment. You expressed that you don't like the Qt API, but in the last sentence it looks like you actually favor Qt over GTK. Seeing GObject referring to GNOME and object model & class hierarchies belonging to Qt.
Re:The only thing missing... (Score:4, Interesting)
Re:The only thing missing... (Score:5, Informative)
Most importantly, the KDE community, way back when Nokia bought Trolltech, has managed to get in the contract a clause (still valid under Digia ownership) that says if Nokia/Digia doesn't release new versions of Qt under a free license (currently it is - to correct you a bit there - under the LGPLv2.1) for 12 months, then everything is automatically given to the community under a BSD license.
http://www.kde.org/community/whatiskde/kdefreeqtfoundation.php
Re: (Score:3)
It is both LGPLv2 and GPLv3.
Re: (Score:2)
Re: (Score:3)
the paranoia is unwarranted, but it still exists.
It may well be there, but there's also a marginalization of Qt/KDE by some of the largest distros (perhaps with that canard). If you look at the companies backing them, you'll see many @bigco addresses on the GNOME-related software teams and many, many fewer working on KDE. So I think some of it is simply NIH, but perhaps with a business strategy aspect of, "Who is Digia and why should BigCo be dependent on them when we have an alternative we control, even
Re: (Score:3)
I think this dates back to the early Gnome 1 days. Compaq, Debian, Eazel, Free Software Foundation, Gnumatic, Helix Code, Henzai, Inc., IBM, Sun Microsystems, and VA Linux Systems were the guys behind Gnome 1. That's where the big company support started.
The big company Qt guys were SUSE (Novell), Turbolinux (Asian still big) Conectiva (now merged with MandrakeSoft to form Mandriva) and Caldera (SCO).
When Nokia owned Qt directly that certainly helped but Nokia was very parochial in its interests. Both
Pissing Contest By Users (Score:4, Interesting)
I'd like to see all Linux projects standardize on Qt as a their Gui toolkit. I understand why everyone has their own but the war is won and Qt won it.
War..Won!? All I see is healthy competition, and personally I run a whole host of Applications that I don't care what toolkit they are in. Having a look around there are some absolutely stellar QT applications http://calibre-ebook.com/ [calibre-ebook.com], k3b http://www.k3b.org/ [k3b.org] (although not in development for a while), MP3 Diags http://mp3diags.sourceforge.net/ [sourceforge.net] and of course Clementine http://www.clementine-player.org/about [clementine-player.org]. There are a few programs that can run either that I use Transmission http://www.transmissionbt.com/ [transmissionbt.com] and Avidemux http://fixounet.free.fr/avidemux/ [fixounet.free.fr] . But the Bottom line is GTK+ seems as popular as ever, and still more popular than Qt.
What is most bizarre is this about this is LXDE is looking great, a Desktop we don't hear about often enough, and is looking like a desktop I would use...half this discussion is about lets be honest a license subtlety I don't care about.
Re: (Score:3)
Since k3b has worked perfectly for me nearly every time I've used it in the last 7 years or so... I'd say those devs are kicking back and admiring a job well done..
I don't understand why Transmission is so popular. Must be because the Gnome users don't know about KTorrent.
Speaking of GTK apps... Would you believe Mozilla Sunbird 0.9 still runs on a modern KDE4 desktop?
(I have a need for a standalone calendar app that reads and writes remote ICS files, and it seems silly to run Thunderbird on that machine wh
Re: (Score:2)
I agree - k3b has been perfect in my opinion since the KDE 3 days. Why break it now?
Re: (Score:3)
I'd like to see all Linux projects standardize on Qt as a their Gui toolkit. I understand why everyone has their own but the war is won and Qt won it.
Because it was a commercial library for a long long time and people went with alternatives, similar to LessTif vs Motif back in the day.
Re: (Score:1)
Re: (Score:2)
Who used LessTif?
Everybody who didn't want to pay for Motif, for whatever reason
Sadly, by time it get really compatible it was mostly obsolete.
GTK was invented by the GIMP guys (early versions used Motif)
I bet most linux GIMP users were *not* linking against commercial Motif.
Re: (Score:2)
I use Lesstif almost every single day since it's used by Xpdf and I've yet to find a better PDF reader than Xpdf.
Re: (Score:2)
LessTif came a lot later. Initially, it was the OpenLook vs Motif wars, and Motif won - even Sun abandoned OpenLook in Solaris. By the time LessTif arrived, Motif was available as a the basis of CDE. LessTif was used by the Linux distros, as they wanted a liberated version of Motif.
Anyway, all that became moot w/ the introduction of KDE and GNOME.
Re: (Score:2)
Yes & No. There is a version of Motif called Open Motif, which adheres to the Open Group Public License, which is not open source, b'cos it has a restriction that it can only be used on OSs that have licenses that satisfy the OSI's 'Open Source' definition.
GPL guys should like, if not love, this license as it forces reciprocity - the software cannot be used on closed or proprietary systems. Unfortunately, it can't be used on shared source systems either.
Motif, however, is still not open sourced [opengroup.org] -
Re: (Score:2)
I don't think that page you linked to is updated. Motif was recently open sourced under LGPL.
http://motif.ics.com/ [ics.com]
http://sourceforge.net/projects/motif/ [sourceforge.net]
http://sourceforge.net/p/motif/code/ci/master/tree/COPYING [sourceforge.net]
They even open sourced CDE under the same license not long before that.
http://tech.slashdot.org/story/12/08/06/1335258/cde-open-sourced [slashdot.org]
Re: (Score:2)
Who used LessTif? GTK was invented by the GIMP guys (early versions used Motif).
Back in the day before GTK, just about everybody used LessTif. No way were they gonna pay big time beaucoup bucks for Motif to run some GPL 1.x code. There was even a Linux wm that ran off LessTif. Linky [catcode.com] for those interested in what we hadda deal with back in the day...
Re:The only thing missing... (Score:4, Insightful)
I don't have anything against Qt, but what makes you think that it "won"? Off the top of my head, I can't think of any major open source desktop applications that use Qt (other than those bundled with KDE). They all use GTK+: Firefox, LibreOffice, Chrome(ium), Gimp, Gnome, Eclipse and every Java app that uses SWT (and every Java app that uses Swing emulates GTK+ not Qt).
Re: (Score:3)
Skype?
Re:The only thing missing... (Score:4, Informative)
I don't have anything against Qt, but what makes you think that it "won"? Off the top of my head, I can't think of any major open source desktop applications that use Qt (other than those bundled with KDE). They all use GTK+: Firefox, LibreOffice, Chrome(ium), Gimp, Gnome, Eclipse and every Java app that uses SWT (and every Java app that uses Swing emulates GTK+ not Qt).
VLC media player is qt-based
And this other is less known but even more impressive, Velneo: www.velneo.com It's a RAD tool, where the awesome productivity is cross platform.
Check a full-fledged ERP, running i Android http://www.youtube.com/watch?v=iXluV5jvmc0 [youtube.com] The very exact set of advanced corporate features are available in Windows, MacOSX, Linux and Android. In the video, it is shown accessing a remote database in realtime. I tested it on my own, you develop once, and you don't have to know anything advanced about Windows, Android, MacOSX or Linux, to run the software you developed in such OS.
The power of Qt is noticeable in Velneo, and I talk after a decade and half of experience in software development, including using mainstream development tools.
Re: (Score:2)
I had a click on the Velneo link... it might be awesome, but its in spanish(?) so that would put most people off it immediately.
Re: (Score:2)
sorry - I meant the website, I'm sure the apps themselves can be in any language. If you don't speak spanish, a visitor is just not likely to progress further in the site and find out more.
Re: (Score:2)
I'd like to see all Linux projects standardize on Qt as a their Gui toolkit. I understand why everyone has their own but the war is won and Qt won it.
Ironically, didn't Gtk (and Gnome) come from disatisfaction with the original license QT was released under years ago (and since remedied)?
Re: (Score:2)
Re:The only thing missing... (Score:5, Interesting)
Re: (Score:2)
Not if you want things like menus and buttons, which I've heard Firefox has.
Re:The only thing missing... (Score:4, Funny)
Not if you want things like menus and buttons, which I've heard Firefox has.
I heard the next version will be removing the last of them, since they confuse users.
Re: (Score:2)
That's something that I've not heard then. Sounds more like something Gnome would do. Maybe I should check out Epiphany again just to see if something like that is going on.
CSS chrome (Score:2)
Huge icons... (Score:1)
Why do the tool bar icons have to be huge and child-like?
Been wanting this (Score:2)
Re: (Score:2)
RazorQT is getting there. Been using it as a DE on some older systems (think P4 era). Have that next to TDE on one laptop.
Yay. (Score:1)
Yay. More projects should port from crappy bastard hack oop GTK to properly object oriented QT. GTK is just pathetic. I always notice when a program uses GTK - dialogs suck, widgets often require two clicks, one to focus, another to ack (what the fuck? this is the 21st century) interface is usually simplistic verging on nonfunctional and defaults are terrible. All things that OOP helps a lot. Especially defaults. Plain old C is the enemy of good defaults. Speaking as a verteran plain old C hack, including a
Re: (Score:2)
I meant "act", not "ack".
Re: (Score:2)
Compositing (Score:2)
Re: (Score:2)
So use Compiz
Re: (Score:2)
I fixed a brand new laptop yesterday, dual core 32nm Atom with PowerVR graphics and 1GB ram. It can only do X11 (not even xv). On a desktop from 1999 (pentium 3 with ATI Rage Pro) you will get xv but no OpenGL still.
Re: (Score:2)
BTW it's up to you to use another window manager (compiz?) and this is easy, change a line in lxsession's configuration file.
LXDE is not really a DE, as you can use any component interchangeably. You can for instance use only pcmanfm. Or use everything LXDE but not use pcmanfm. It's mostly true of something like mate or xfce as well, but here the dependencies are pretty minimal.
Why not fork GTK+ 2.0? (Score:2)
Why not fork GTK+ 2.0 and keep maintaining the fork? ...
That would keep the Lightweight X Desktop Environment being a lightweight desktop environment for X
Re:Why not fork GTK+ 2.0?ed to the donation of Sim (Score:2)
Why fork it? It still exists ;). It will probably be maintained for years, or dormant but still working. I bet there are quite many gtk2 apps. You can still use motif apps nowadays (well, lesstif) like nedit.
Re: (Score:2)
Have you ever tried nedit on non-ASCII utf8 files?
Re: (Score:2, Funny)
I'm still on Motif you insensitive clod.
Beauty is in the eye of the beholder. (Score:2)
n/t
LiQuiD? (Score:2)