-
Notifications
You must be signed in to change notification settings - Fork 203
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
Make it possible to associate supported file types with museeks #154
Comments
It looks like this may be unsupported? electron/electron#2651 |
Atom does it. We might need to find how they managed to do that. |
Otherwise, you'd need the electron.exe program to see any (undecorated) command-line arguments passed to it and then expose them to you. I've just walked the process.argv[i] stack and zero is electron.exe (with path) and the next sixteen are mostly "--type=renderer" and a variety of things, ending with process.argv[16] as "/prefetch:1" and nothing more. If you attempt to run electron.exe from the command line with an argument it just doesn't make it to that argument stack. The same goes for right-mouse click launching an MP3 file from Explorer with an Open With => Electron (which should be the default). So it sounds like the native method of using arguments from the command line or Open With just won't work. Or will it...? Eureka! Okay, I added
...just before the ending BODY tag in my app.html. I then open Explorer, right-mouse click an MP3, Open With..., select Electron and the alert indicates the list of arguments. The first is of course the program with path itself and the second (now) is the indicated music file. Does that help at all? You'd need to force single-instance of course. |
If you're only interested in the current user in Windows, it's: CurrentUser_Add.reg:
So basically, you'd have to add another entry (incrementing the letter for the key) for electron.exe in this case. I don't think technically you have to adjust the MRUList entry. And of course, you'd repeat this for other supported file types like .wav or whatever. I would guess that it's there already, but you might also need at the global level: ElectronApp_Add.reg:
Of course, that's my own filepath to the executable. ElectronApp-CurrentUser_Add.reg:
|
https://github.com/electron-userland/electron-builder/wiki/Options once #339 will be finished, we should be able to work on this. |
Just got this error when testing stuff; this may be a problem for the implementation of this feature:
|
Fixed by |
It should be possible to make museeks default app for supported file types
Related: #155
The text was updated successfully, but these errors were encountered: