The Wayback Machine - https://web.archive.org/web/20201101211055/https://github.com/libfive/libfive/issues/309
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Studio document MIME type? #309

Open
omgitsraven opened this issue Oct 5, 2019 · 1 comment
Open

Studio document MIME type? #309

omgitsraven opened this issue Oct 5, 2019 · 1 comment
Labels

Comments

@omgitsraven
Copy link
Collaborator

@omgitsraven omgitsraven commented Oct 5, 2019

So I've finally gotten Studio running on an Ubuntu VM rather than my macbook; it took a bit of confusing setup but it's basically working now.

However, the one issue that I'm still having is file association: Ubuntu associates files by MIME type rather than by suffix, and for some reason it considers all files saved by Studio to be of type "plain text document". Meaning, if I change them to open in Studio rather than gedit, then so do all my .txt files.

I'm not really sure what the usual approach for fixing this is—is there a way for Studio to write a MIME type to the file's metadata when it saves it? Or would it be better to add a system-wide MIME type association to the .IO suffix as explained here? https://help.ubuntu.com/community/AddingMimeTypes (Maybe the checkout could include a .sh file for adding-if-absent, and the Ubuntu build instructions could include running that file?)

I am still absolutely brand new at Linux, so I have absolutely no idea if I'm even barking up the right tree here—it took me ages just to get Studio to even appear in the "open with" list. (Actually come to think of it, I guess that ought to be in the same hypothetical setup .sh file?)

@mkeeter
Copy link
Member

@mkeeter mkeeter commented Oct 6, 2019

Writing OS-specific metadata seems kinda weird – I think that adding them through the OS makes sense, and your link has a few good directions. If you end up with an XML file (like in the second example), you could put it in studio/deploy/linux along with a note explaining how to use it.

@mkeeter mkeeter added the linux label Oct 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.