lyokha / vim-xkbswitch

vim plugin for automatic keyboard layout switching in insert mode
MIT License
481 stars 23 forks source link

test one more path for libg3kbswitch.so #65

Closed solopasha closed 1 year ago

solopasha commented 1 year ago

I packaged g3kb-switch in fedora. As it's an unversioned so lib, that is not linked against, I want to place it in the subdir

lyokha commented 1 year ago

Thanks! I decided that there must be a unified way to find the library in all UNIX-like distributions as it would greatly simplify the code. A new function find_library() does the lookup, it includes various combinations of local/lib/lib, lib/lib64/lib32 and the case when the library locates in a subdirectory such as lib64/g3kb-switch/.