Eclipse GTK fix for Ubuntu 9.10 / Karmic

If you’ve happen to be using Eclipse based IDE, like Spring Tool Suite, on recently released Ubuntu 9.10, you must have noticed that mouse click on “OK”/”Apply” and some other buttons doesn’t work.

The problem is with SWT/JFace GTK implementation. Anyway, the GTK in Karmic has been changed which resulted in backward incompatibility with the SWT implementation. To temporarily override new settings, you simply need to launch eclipse with GDK_NATIVE_WINDOWS=true parameter. Here is a little script that you can put in your eclipse application folder that will do the trick. You can also create a desktop launcher to the script.

#!/usr/bin/env bash
cd `dirname $0`
export GDK_NATIVE_WINDOWS=true
./eclipse

One thought on “Eclipse GTK fix for Ubuntu 9.10 / Karmic

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s