oni icon indicating copy to clipboard operation
oni copied to clipboard

Make Mac OS default open file associations optional

Open ghost opened this issue 8 years ago • 5 comments

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.

ghost avatar Apr 14 '18 10:04 ghost

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.

oni-bot avatar Apr 14 '18 10:04 oni-bot

@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)

akinsho avatar Apr 15 '18 20:04 akinsho

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

ghost avatar Apr 16 '18 04:04 ghost

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.

bryphe avatar Apr 16 '18 23:04 bryphe

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?

ghost avatar Apr 17 '18 05:04 ghost