My cursorFile is an image with the .ico format. I work on Linux.
This code doesn’t work, my cursor doesn’t change ! It returns me this error :
BadMatch (invalid parameter attributes)
BadCursor (invalid Cursor parameter)
Did you see any other error messages to the console before that, for instance “Could not find cursor filename” or “Could not open cursor file” or “Could not read from cursor file” or so on?
Those messages are relevant. Which one did you have? “Could not find cursor filename” means you gave the wrong filename. “X11 cursor couldn’t be loaded” is a more general problem and suggests something is wrong with the cursor file itself. Note that not every .ico file can be loaded on Linux; in particular, we can’t load PNG-compressed .ico files.
I always have the problem with my cursor. I had this message : “Could not find the cursor file name” so I specified the absolute path and now the message returned is “: BadMatch (invalid parameter attributes)” and “BadCursor (invalid Cursor parameter)”.
I don’t understand why I should specify the absolute path because with my other images I don’t do it. And above all why this don’t work.
In the config.prc file I did this :
cursor-filename sablier.ico
The filename must be given relative to your model-path, which is the same as your other model files. What folder is the .ico file in, is it one of the folders on your model-path?
It sounds like the .ico file isn’t compatible with Linux. Try a different .ico file, or open it and re-save it without compression.