-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Improve torrent handler registration #773
Comments
Looks good, but is the removeDefault necessary? I'm used to just overriding the default extension handler from the OS or another program. |
Interesting point. On macOS and Linux, we don't currently have code to make WebTorrent the default .torrent file handler. On Windows, we do. What do other apps do? I think uTorrent asks if you want to make it the default handler for torrent files and magnet links on startup.
@dcposch and I discussed and decided to keep things simple. I can't see a situation where the user wants to handle magnet links in uTorrent by .torrent files in WebTorrent, for example. But, with stream-magnet links, I can actually see people wanting to make WebTorrent default for that, but use a traditional torrent client for the rest. Still, it's kind of an edge case. I think it would be acceptable to have these options in Preferences:
Later, we can have an "Advanced..." section in Preferences that is collapsed by default, like the Chrome preferences has, so this complexity won't be exposed to most users. |
I like that, but can we detect if the default has been changed by another program?
With Windows I am also used to programs associating with file extensions and not becoming the default. There are several ways to set the default, I usually right click a file. I guess making this an option at startup or toggle in preferences is convenient for some users, but I really don't think it's necessary. If WebTorrent is the only program associated with the |
Yes, the
We don't have a way to become the default on Mac/Linux right now, so I'm starting to agree with you. Either we support this on all platforms, or we should remove it. It would be misleading to have a "Open torrent files in WebTorrent" option that doesn't work on Mac/Linux.
I think showing a dialog on first startup asking "Use WebTorrent as your default torrent client?" is a reasonable way to help users switching from other clients.
That's the good news in all of this. The most inexperienced users are the ones who are likely to have no torrent clients installed already and they'll be in good shape with WebTorrent as the default torrent handler. But for magnet links, they're still out of luck unless we have a "Use WebTorrent as your default torrent client?" prompt. How do we help them? |
In Linux case, the .desktop only registers the association between the application and the protocol(scheme) or mime-type but never force it to be default. As @mathiasvr said, in the torrent case, you can select other alternatives and make it default To force to default in linux you need to edit |
You are right, a dialog on first startup is probably a good way to handle this. |
@grunjol Thanks for clarifying. So that means that if we just find a way to do this on macOS, we can have a "Use WebTorrent as your default torrent client?" option on first startup for all platforms, if we want to. |
I am not macOS users but it seems this link can help |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? |
On macOS, the .torrent association is automatic (defined in Info.plist). So if there's no other handler, WebTorrent will be default. If there's another default, then the user can still use "Open With..." to select WebTorrent.
On Windows / Linux, the current situation (after PR #771) is that WebTorrent does nothing until the preference is toggled. This is not ideal.
Now the
.desktop
file will not get installed on Linux systems. But that file is needed for the app icon to show up correctly in the Unity launcher, and to support pinning etc. And there's no way to do "Open With..." on Windows, until the user toggles the preference option.I think we need to change
handlers.js
to distinguish between installing handlers and making WebTorrent the default.@dcposch @mathiasvr Does that seem reasonable to you?
The text was updated successfully, but these errors were encountered: