ctc-oss / omega-edit

Open source library for building editors that can handle massive files, and multiple viewports.
https://ctc-oss.github.io/omega-edit/
Apache License 2.0
8 stars 6 forks source link

Determine the session mime-type #490

Closed scholarsmate closed 1 year ago

scholarsmate commented 1 year ago

Ωedit needs a mechanism for getting the mime type of a session.

scholarsmate commented 1 year ago

There doesn't appear to be a straight-forward cross-platform way to determine the mime type of a file in C/C++. There is a cross-plaform python module (https://github.com/ahupp/python-magic) where a developer has ported libmagic to Windows (as a DLL), that this python module uses.

scholarsmate commented 1 year ago

Instead of determining the file content-type in the Ωedit library, instead use Apache Tika in the Scala middleware.