I want certain file types to open with my electron app. I’ve associate the filetype with my electron in macOS, and when I double click them the app loads fine. However the problem I’m having is that the app loads without loading the file that was clicked on.
Say for example I click on example.txt, this loads my electron app but does not load example.txt in it, just my default app. How do I tell my app to load the file that was clicked on? process.argv seems to be empty, how do I get the filename that triggered the opening?