-
Notifications
You must be signed in to change notification settings - Fork 15.8k
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
App.setAsDefaultProtocolClient for Linux #6440
Comments
On Linux this is declared in your .desktop file, which is something you set up at install-time, not something you can toggle. I could be full of it on this though, there might be a way to register for this dynamically |
It can be done with xdg-settings, and Chromium uses it in |
@paulcbetts For windows it should be done on install too.. But that doesn't mean this API call shouldn't be available. Right now we just do it on first run. |
@atypicalprogrammer I'm not saying what people should do, I'm saying what I (incorrectly) believed was possible |
@zcbenz @atypicalprogrammer A possible solution might be checking for gnome-open, exo-open, xdg-open, gvfs-open, or kde-open and using which ever is available. You could never guarantee support for all Linux distros but you can hopefully target common desktop environments. |
Just as a sidenote, we've been using |
@bengotow Mime type handlers and protocol handlers are two different things. |
Yep! I'm aware - the full command we use in that commit above is |
Any updates on this by anyone? |
This can also be done by editing the file directly: https://askubuntu.com/questions/514125/url-protocol-handlers-in-basic-ubuntu-desktop |
@baconbrad Not neccessarily. On Linux, proto handlers are also handled via - special - MIME types. |
This is now in master 🎉 |
What is the reason
App.setAsDefaultProtocolClient()
is not available for Linux? I was under the impression this is possible, but requires different solutions for different distros.The text was updated successfully, but these errors were encountered: