Make Mac OS default open file associations optional
Hi! I tried out Oni and I think it's a interesting project, however I noticed that it is now my Mac OS default application for a lot of different file-types and I don't want that so now I need to manually change open file associations. Can you make that feature optional? I think it should be a opt-in feature to make Oni default application for different file-types.
Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.
@cjohansson we've only recently expanded the file associations for oni based on another user's feedback (can't find the issue unfortunately).
The associations are made when oni is installed, as I believe electron-builder creates a plist entry for us on new install, in which case I'm not sure it can be undone after the fact, perhaps a user could be prompted on install but its beyond me how to implement that as most mac apps don't tend to run a proper installer 😕, any ideas @bryphe.
(My own two cents I haven't seen any other gui editor like atom or vscode give the option though I'm not a big user of either so not sure if there might be some implementation hurdle)
Yeah I think VSCode has the same behavior as Oni but most big applications for macOS has it as an option-it feature, i.e. Google Chrome
Thanks for the issue @cjohansson ! Yes, unfortunately from the DMG we don't have the option to turn this on or off (it's handled by the plist).
@Akin909 - I think the one option we'd have is to switch to a pkg installer - just means extra work getting that installer package set up though! Those tend to have a little bit more configuration available.
How about not doing anything at install but instead having a option in configuration like:
- "use as default application for supported files" (boolean)
- "check if oni is default application for supported files at start-up" (boolean)
At first launch maybe have a confirmation box "Do you want to use Oni as your default application for supported files?" (boolean) and the answer to this sets configuration to option above?