kde

Plasmoids development in Javascript

Does anyone know about good tutorials for developing KDE plasmoids in Javascript? I have been going over the KDEBase Tutorials, but they have just few examples and not going into advanced techniques. PS: Does nayone know, why "executable" dataengine is not working - e.g. I am not able to fetch any commands output? ...

Activating KDE 4 notifications from bash scripts

I have a bash script activated by crontab and running in background. I would like to add to it the ability to send notifications during the execution. My KDE 4 desktop has a fancy notification system which pops out non-modal messages from the tray bar, and this would be perfect for my needs. So I was searching for a way to generate these...

Get window title with python?

I'm trying to write a python program that checks every X seconds if the 'window title' for 'last.fm' (http://www.last.fm/download) changed, if it did (or it's the first time I run the program) it should use use the string captured from the window title to search for the song's lyrics and display them to the user. I'm currently using KD...

khtml library tutorials/guides?

Hi, I'm trying to use the khtml library, basically just the DOM html implementation from there, but I even failed to create a basic HTMLDocument from a file using load(), and when I tried to create a HTMLDOcument by mutating it via appendChild I get DOMException with errorcode == 8 (NOT FOUND). Can anyone please point me to some sampl...

How do you get the icon, MIME type, and application associated with a file in the Linux Desktop?

Using C++ on the Linux desktop, what is the best way to get the icon, the document description and the application "associated" with an arbitrary file/file path? I'd like to use the most "canonical" way to find icons, mime-type/file type descriptions and associated applications on both KDE and gnome and I'd like to avoid any "shelling ...

Is there any way to automatically focus an application started from kde autostart folder?

I'm currently starting Firefox on Kubuntu 9.0.4 from my .kde/Autostart directory. Firefox is starting fine, but it doesn't grab the focus in the KDE desktop. This is a problem because Firefox is set to start full-screen. As it does not grab focus, the KDE taskbar is still visible over the bottom of the Firefox screen. As soon as I select...

kdialog progress bar "object not accessible" as root

Hi all I have a script containing lots of commands that need root rights. Instead of running all these command with sudo inside the script I prefer to run the whole script with sudo. This is also more comfortable to put it in the sudoers file. sudo ./script.sh However, I'd like to show the progress with a kdialog progress bar, which ...

What Linux Full Text Indexing Tool Has A Good C++ API?

Hi, I'm looking to add full text indexing to a Linux desktop application written in C++. I am thinking that the easiest way to do this would be to call an existing library or utility. This article reviews various open source utilities available for the Gnome and KDE desktops; metatracker, recoll and stigi are all written in C++ so they...

linux clipboard read/write in C

I done lots of googling but I am still unsure on how to proceed. What's the most common way of reading/write to the clipboard under Linux? I want both support for Gnome & KDE desktops. Updated: do I take there isn't an easy solution and one must "aggregate" together multiple sources (gnome, kde) in order to craft a solution? ...

Detect enter/exit session under KDE/Gnome without DBUS

I have implemented a systray icon in C++ using Xlib. I try to detect the enter/exit session events using the X Session Management Protocol, but latest GNOME versions are giving me trouble. Is there any reliable way to detect it without moving to DBUS? I am trying to avoid DBUS to be as legacy-compatible as possible. ...

Is it possible to use KHTMLPart completely from console?

I'm using the KHTMLPart component from the PyKDE (in Python) library to download some webpages in the background and return sizes of certain elements in pixels. I don't really need any visual output from this script, indeed I will probably run it on a server without X installed. The problem is that when I tell my application to run conso...

How to change colors programmatically in Konsole based on current directory?

I currently use a color scheme based on which directory that I'm working in. I manually open up a Konsole shell and then cd into a directory and got to Settings and change the color scheme. What I would like to do is have Konsole automatically set its foreground and background colors based on which directory I'm in. Basically if I'm i...

How to launch a website in Java Swing, in a way that works in Gnome and KDE

As outline in a previous question I asked. A website can be launched by doing this: Desktop.getDesktop().browse(new java.net.URI("www.google.com")); This works fine in Ubuntu(gnome), but it doesn't appear to work in OpenSUSE(KDE flavour). There is a bug lodged with Sun about this. Any ideas on alternate ways to do this, that will wo...

Building using CMake-GUI

I am trying to build Marble on Windows (XP) and have been extremely unsuccessful. Following the instructions written here. I am wanting to build it as QT only. Configuration of the build tree fails. I am using the cmake-gui since I have never tried to compile using cmake it's possible it could be something in there. I found a similar i...

Do Qt Applications require KDE?

Do all Qt applications require KDE to be installed? Is it enough if the Qt runtime is installed along with GNOME? Can I make a Qt application look exactly like a GTK application under GNOME? Could anyone please point me to some article detailing the relationship between Qt, GTK, KDE, GNOME, X? ...

Seeking advice on moving Qt 4 and Java applications between desktops on KDE 3

We've got a (perhaps?) unusual situation where we have a lot of applications built on Qt 4 and some applications built in Java (Swing) but we're using KDE 3. We're on Red Hat Enterprise Linux 5 and since there's no official version of KDE 4 for it, upgrading to KDE 4 is not a possible option. One of the things on our project our custome...

In KDE4, how can I automatically tell which “Desktop” a Konsole terminal is in?

I was looking for this and found a question and answer for KDE3; I figured more people will be interested in the answer for KDE4 as time passes (posting here just so I can also post the answer...) ...

Good development themes/environments for Gnome/kde/whatever?

I've searched forever for good themes or customized versions of any type of x-server that is designed for development in terms of web productions/programming for all kind of stuffs. Features such as simplified workspace overviews, good tabbing support etc. For multimedia "UbuntuStudio" exists, and something like that but for programming ...

How do you parse the XDG/gnome/kde menu/desktop item structure in c++??

I would like to parse the menu structure for Gnome Panels (the standard Gnome Desktop application launcher) and it's KDE equivalent using c/c++ function calls. That is, I'd like a list of what the base menu categories and submenu are installed in a given machine. I would like to do with using fairly simple c/c++ function calls (with NO s...

Get KDE to run a bash script.

I have a bash script that takes a file name as an arg. It works great from the command line. When I right-click a file in KDE and select "open with", then point it to my script, it doesn't run. What am I doing wrong? ...