Coder Social home page Coder Social logo

Comments (5)

ph1p avatar ph1p commented on August 11, 2024 1

Mac: all informations about the app and its file extensions are stored in a file called Info.plist (XML-file). Its located in your app. Here is the Info.plist of buttercup:
info_plist
I don't know how windows or linux handle it and i've no idea how to test it.

I think when the OS knows the connection between file and app (Info.plist, registry ...), it opens the app and calls a native method. Electron then triggers one of these events https://github.com/electron/electron/blob/master/docs/api/app.md

I'm just brainstorming cause I like your project and want to help you! :)

from buttercup-desktop.

perry-mitchell avatar perry-mitchell commented on August 11, 2024

Suggestions for implementation here are welcome - I have no experience doing this programmatically.

Perhaps duti could work?

from buttercup-desktop.

ph1p avatar ph1p commented on August 11, 2024

Maybe these two links will help a little bit:

from buttercup-desktop.

sallar avatar sallar commented on August 11, 2024

@ph1p thanks, I have figured out the extension association (electron-builder package does it), my problem is now I don't know how to test it. I don't know how does the OS pass the file path to the app.

from buttercup-desktop.

sallar avatar sallar commented on August 11, 2024

thanks @ph1p, those events are really helpful. Will try to make it work ASAP.

from buttercup-desktop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.