Tuesday, November 03, 2009

Getting Krita to work in Ubuntu Karmic

Krita, KDE's take on a graphics application, still contains a nasty bug in Ubuntu Karmic that stops it from functioning with a Wacom graphics tablet. The cause of this issue is rather simple, QT expects a device name of stylus, while Ubuntu assigns the tablet names like Wacom Intuos2 6x8. Luckily one can override the name easily with hal. Just create the file /etc/hal/fdi/policy/10-wacom.fdi containing:

<?xml version="1.0" encoding="UTF-8"?>

<deviceinfo version="0.2">


<match key="input.x11_options.Type" contains="stylus">
<merge key="info.product" type="string">stylus</merge>

<match key="input.x11_options.Type" contains="eraser">
<merge key="info.product" type="string">eraser</merge>



You have to reboot after this change or replug your Wacom. A proper fix for this issue seems to be in Qt 4.6, but Ubuntu Karmic is stuck with 4.5 at the moment.

No comments: