Handling of alternative terminfo settings (kitty-term)

Last night I was trying to use the kitty terminal with the matterhorn snap, and bumped into some issues, mainly related to the alternative TERMINFO kitty uses by default.

I managed to get this kind of working, by placing the new terminfo file in my home directory and start matterhorn via TERMINFO=$HOME/.terminfo /snap/bin/matterhorn, but that feels suboptimal.

The other way I found works (just not sure about the implications yet) is using an alternative TERM value, like xterm-256colors

I assume this is caused due to the fact that core18 does not have support for this terminal, so I was hoping for a clean solution for this.