nicklan / drmr

An LV2 sampler plugin that (currently) plays hydrogen drum kits
GNU General Public License v3.0
57 stars 17 forks source link

Cannot handle symlinks #13

Closed falkTX closed 9 years ago

falkTX commented 9 years ago

If the drumkit folder is a symlink drmr is not able to load it. Fails with:

trying to load: file:///home/falktx/.lv2/sfs.lv2/Audiophob/drumkit.xml
Unable to open file:: No such file or directory
Failed to load kit at: file:///home/falktx/.lv2/sfs.lv2/Audiophob
Passed a path I can't resolve, bailing out

These files definitely exist though:

$ file /home/falktx/.lv2/sfs.lv2/Audiophob
/home/falktx/.lv2/sfs.lv2/Audiophob: symbolic link to `/usr/share/hydrogen/data/drumkits/Audiophob'

and

$ file /home/falktx/.lv2/sfs.lv2/Audiophob/drumkit.xml
/home/falktx/.lv2/sfs.lv2/Audiophob/drumkit.xml: XML document text

Because of this drmr cannot load state in jalv and ardour3.

falkTX commented 9 years ago

Actually nevermind, symlinks are supported. The issue was lv2 presets using "file://" prefix. I fixed it for you and will add it to my current pull request.

drmr is working in carla and jalv here :)