#8

Images looked up in wrong share directory

Opentahiniopened 9y ago

I just compiled matchbox-keyboard, on both Raspbian (jessie) and Debian (testing), and in both cases I get the following error:

Failed to load '/usr/share/matchbox-keyboard/key-backspace.png'

Of course it does since make install installed the files in /usr/local/share, but here it is looking in /usr/share. But the entire keyboard fails to load because of that.

The problem seems to be that the keyboard xml layouts hardcode the path to the images.

I'm not sure what would be the best way to fix the path hardcoding: have the images in /usr/share directly, or have the image path somewhere in configurations.

But also, I think the application should not throw an error if the image fails to load. It could default to the action name. At least the keyboard would work.

Activity

2
xlab9y ago

Hi! Yeah, hardcoding was a bad idea, but it was 10+ years ago, so.. I think you can simply put images where it expects, or send a PR with prefix being exposed to a command line argument.

alepez9y ago

Hi guys, I've just met this issue. PR #11 adds the possibility to change it using an environment variable.