So Much Potential

31 10 2009

I was doing some thinking and I realized there’s a few pieces of technology in Linux that have so much potential but are extremely under-utilized.

PolicyKit

PolicyKit is an awesome piece of software. It allows for a finer grained permission system. Instead of launching an entire application as root, you can elevate your privileges in a seamless manner. However, PolicyKit is so under used. For example, when Gnome deprecated gnome-vfs and moved to gio/gvfs, Nautilus supposedly got a framework in place that would allow PolicyKit integration. So if you needed root permissions to makes changes to the file system you would be able to basically click a button and elevate your privileges through PolicyKit. Synaptic could also benefit from some PolicyKit integration. Why isn’t PolicyKit used more?

Tracker

Tracker is a great metadata indexer that crawls your files system and indexes metadata from files. Instead of only searching by file name, you can use Tracker to search ID3 tags or search for text in a OpenOffice or Word document. The problem is, no one has integrated this great search functionality into applications. Once again, there’s an opportunity for some integration with Nautilus. If Nautilus could use Tracker as a backend for searching and have the ability to add tags to files, it would really add some great functionality.

There’s so much potential here. It’s a shame it’s not being used.





Install Qgtkstyle

24 09 2008

Since I haven’t found any proper debs of qgtkstyle around, I’m just going to tell how to compile it from source.

If you don’t know what Qgtkstyle is, Qgtkstyle is a Qt theme engine that uses your GTK theme directly.

First thing to do is to enable the Backports repository since you need Qt 4.4 which is in the Backports in Hardy.  You can do this by going System→Administration→Software Sources, then going to the Updates tab and enabling the “Unsupported updates (hardy-backports)” repository.

Software Sources

Software Sources

Click Close and then click the Reload button when prompted.  Now to install all the development packages needed to compile Qgtkstyle.

sudo apt-get install build-essential libqt4-dev libgtk2.0-dev subversion qt4-qtconfig

This is optional if you want to install with Checkinstall

sudo apt-get install checkinstall

Now to get the code

svn co svn://labs.trolltech.com/svn/styles/gtkstyle

There should be a folder in your home directory called gtkstyle. Now enter that directory

cd gtkstyle/

Now compile it

qmake qgtkstyle.pro

Now here you have a choice. You can either just install it directly with

sudo make install

Or you may like to build a deb out of it for easy removal later if need be.  In that case do

sudo checkinstall

and follow the instructions.  They’re pretty self explanitory.

Now if you go under System→Preferences→Qt 4 Settings you can choose GTK from the drop down menu.

Qt 4 Settings

Qt 4 Settings

Then do a File→Save and enjoy Qt applications with a nice GTK integration. :)

Also if you want to see a little Easter Egg move that preview window around. Yes you can actually move that. I won’t spoile the surprise. It gave me a little laugh when I first found it. ;)





Why the hate for Qt?

20 09 2008

I’ve noticed there seems to be a lot of “ZOMG it’s Qt! Oh Noes!” going on and I just don’t get it.  I think the reason is some confusion and lack of understanding.  Now I’m not talking about the programming languages behind Qt and GTK, I’m talking about the typical end user’s experience.  People seem to assume that Qt == KDE, Qt requires a lot of KDE libs, and/or Qt looks ugly and doesn’t integrate well in a GTK environment.

First, a Qt application doesn’t always mean it’s KDE.  Yes KDE is based on Qt, but there’s a huge difference between a pure Qt app and a KDE app.  An application that is written in pure Qt has nothing to do with KDE whatsoever.    Some of these include SMplayer, KeePassX, VLC (0.9.2), VirtualBox, and many others.  KDE apps will depend on a lot of KDE specific stuff that will have a lot of dependencies.  This goes on to the second point.  A pure Qt app does not require a tone of KDE libs since it has nothing to do with KDE.  All it usually needs libqt.

Finally to put this integration mess to rest.  Qt integrating into a GTK environment used to be an issue.  This is no longer true.  This argument is deprecated.  Qgtkstyle (which will come bundled with Qt 4.5 :D ) is a Qt theme engine that uses your GTK theme directly.  It does not try to emulate a GTK theme or anything like that.  It actually uses the GTK theme.  So now it can’t be argued that Qt doesn’t integrate with GTK anymore.  You pretty much can’t tell the difference.

VirtualBox

VirtualBox

SMplayer

SMplayer

SMplayer Preferences

SMplayer Preferences

You almost can’t even tell those are Qt applications.

So I just don’t understand all the Qt hating going on.

</rant>





Changing GDM’s GTK Theme

2 06 2008

I’m surprised I didn’t figure this out a while ago because the answer has been staring at me in the face this whole time. :lol:

Have you ever gotten a very nice looking GDM theme only to be disappointed because the widgets and highlights were still themed in the Human theme and it clashed horribly?  Like this?

Ugh. :shock:

Well there’s actually a very simple solution to this.  If you go under System→Administration→Login Window, the General tab contains a check box that says “GtkRC file:”.  This is where you can specify a gtkrc file for GDM to use so it will use a different GTK theme.

Most themes can be found in /usr/share/themes/ and the gtkrc file will be located in the gtk-2.0 directory under the theme name.  In the example I used the Clearlooks gtkrc and afterwards my GDM looked like this:

Ah, much better. Happy theming! :)





Gnome 2.20.1 in Gutsy

20 10 2007

This is a short one :P

By enabling the Gutsy Proposed Updates, you will see bits and pieces of Gnome 2.20.1 starting to come down. :D

software-sources2.png

gnome-2-20-1.png

Just, a warning. These updates are called Proposed for a reason. They are mainly for testing purposes and they can sometimes cause breakage. If you enable this repository you are doing so at your own risk. They will eventually come through the regular updates. But it’s also a good way to help with testing new packages ;)

Edit: Gnome 2.20.1 is now officially in Ubuntu Gutsy :D