Quacksol / VSInstruments

3 stars 3 forks source link

Directory look up misbehaves on Linux #7

Open TaeruAlethea opened 8 months ago

TaeruAlethea commented 8 months ago

When using some Linux distros, the path variable gets messy and doesn't pull from an appropriate place.

I believe the 'abcBaseDirectory' is to blame. https://github.com/Quacksol/VSInstruments/blob/a95a695d26aff19f6da96118a9b252b1b61ad1c7/src/Instrument.cs#L535

I believe it would work correctly and as expected if the path was derived from a GamePaths. https://apidocs.vintagestory.at/api/Vintagestory.API.Config.GamePaths.html

c01dc0ffee commented 4 weeks ago

Can you include more information (e.g. which distro, what the searched path is?)

With a flatpak install, the abc directory is /var/lib/flatpak/app/at.vintagestory.VintageStory/current/active/files/extra/vintagestory/abc and the VintagestoryData folder is instead at ~/.var/app/at.vintagestory.VintageStory/config/VintagestoryData.

I'd personally like to see the abc search path changed to VintagestoryData rather than Vintagestory as that seems more appropriate.

TaeruAlethea commented 3 weeks ago

I was using NixOS. I was not using the Flatpak version. I have since switched back to Windows.