sanette / bogue

GUI library for ocaml based on SDL2
http://sanette.github.io/bogue/Principles.html
Other
189 stars 15 forks source link

directories dependency does not work on Windows #27

Closed jonahbeckford closed 8 months ago

jonahbeckford commented 8 months ago

The last version of bogue pulled in the directories package. The problem is that package does not work on Windows: https://github.com/OCamlPro/directories/issues/14

That's stuck because xdg has become the standard (its logic has made its way into the ocaml compiler for profile calculation). And the authors don't have access to a Windows machine.

Thoughts?

sanette commented 8 months ago

Well, that's too bad because I remember we switched to directories precisely because we thought it would handle better cross-platform config dirs... I guess we could switch back to the old scheme

jonahbeckford commented 8 months ago

https://v3.ocaml.org/p/xdg/latest/doc/index.html works in both Windows and Unix.

sanette commented 8 months ago

wouldn't xdg pull in the whole dune as a runtime dependency? (this is a naive question; I don't know what binaries really include) (for the moment, dune is used only for building)

jonahbeckford commented 8 months ago

No, it has no runtime dependencies ... just like directories. https://github.com/ocaml/dune/blob/main/xdg.opam

I will send you a PR.