This is more or less a follow-up on my previous article, but this time we focus on how to communicate with KDE applications from the commandline. This is done with D-Bus and for that we'll use the qdbus command. For example, it's possible to request the current track information in Amraok, or you could set your Kopete status on Away.
Een beetje als vervolg op m'n vorige artikel wordt in dit artikel uitgelegd hoe je met KDE-programma's kan interacteren vanaf de commandoprompt. Dit gaat met behulp van D-Bus en we gebruiken hiervoor het commando qdbus. Hiermee kan je bijvoorbeeld de titel van het huidige nummer in Amarok opvragen, of kan je jezelf op afwezig zetten in Kopete.
Yesterday I installed the LaTeX plugin for Kopete, but after a couple of restarts of Kopete I didn't manage it to work. The text remained unfiltered so I saw $$\sqrt(x)$$ all the time.
It seems I had an option enabled in the Kopete settings which disabled filtering of the text. After I disabled Settings->Configure->Appearance->Colors & Fonts->Do not show user specified rich text I could see the LaTeX output.
This contains a quick script for grepping in your Kopete history, spitting out conversations held on a certain date.
If a value hasn't been supplied it will default to the value of the current date.
Nothing special, but just wanted to share it.