xfce4-mouse-settings-CRITICAL **: XI is not present or too old
paulg at cse.yorku.ca
Wed Jul 8 15:22:34 CEST 2009
I was able to compile Xfce 4.6 on our CentOS (RHEL) 4.6 system. While I was doing so testing, I notice that the mouse settings refuse to launch. When I run xfce4-mouse-settings from the command line I get the following.
azzy 335 % xfce4-mouse-settings
xfce4-mouse-settings:309 : xfce4-mouse-settings-CRITICAL **: XI is not present or too old.
Here is the code block that triggers the error!
1225 /* check for Xi 1.4 */
1226 version = XGetExtensionVersion (GDK_DISPLAY (), INAME);
1227 if (!version || !version->present || version->major_version < 1 || version->minor_version < 4)
1229 g_critical ("XI is not present or too old.");
1231 return EXIT_FAILURE;
I was able to find this Gentoo bug report http://bugs.gentoo.org/show_bug.cgi?id=262333. From the bug report it seems that XGetExtensionVersion returns the version of the Xorg server not the version of Xi.
A check of xfce4-settings-4.6.1/dialogs/keyboard-settings/main.c show that the keyboard settings doesn't need a specific version of the Xorg server or Xi and I assume that since the keyboard is a input device is should also care about libXi. Is the mouse-settings expecting to support more mouse like devices (tablets,etc).
I am running Xi 1.2.1, and here are the stock CentOS xorg RPMS we have installed! We are running Xorg 6.8.2 (Released: 2005-02-09). From the source code (xfce4-settings-4.6.1/dialogs/mouse-settings/main.c) I would need to run Xorg 7.3, which has Xorg server 1.4. In Xorg 7.3 it uses libXi v1.3.1 - so the error is misleading! Do we realy need Xorg 7.3 or do we need a recent enough version of Xi ?
CentOS RPMS installed...
Any suggestions or work arounds ?
More information about the Xfce4-dev