Skip to content

App.setAsDefaultProtocolClient for Linux #6440

Closed

Description

@atypicalprogrammer

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.

Activity

  1. anaisbetts commented on Jul 11, 2016

    @anaisbetts
    Contributor

    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

  2. changed the title [-]App.setAsDefaultProtocolClient for Linux?[/-] [+]App.setAsDefaultProtocolClient for Linux[/+] on Jul 12, 2016
  3. atypicalprogrammer commented on Jul 12, 2016

    @atypicalprogrammer
    Author

    @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.

  4. anaisbetts commented on Jul 13, 2016

    @anaisbetts
    Contributor

    @atypicalprogrammer I'm not saying what people should do, I'm saying what I (incorrectly) believed was possible

  5. baconbrad commented on Jul 13, 2016

    @baconbrad
    Contributor

    @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.

  6. bengotow commented on Jul 27, 2016

    @bengotow
    Contributor

    Just as a sidenote, we've been using xdg-mime default to make N1 the default mail client on Linux and it's been working fairly well for folks. Would definitely be nice to push it upstream. nylas/nylas-mail@43e9b4c

  7. baconbrad commented on Jul 27, 2016

    @baconbrad
    Contributor

    @bengotow Mime type handlers and protocol handlers are two different things.

  8. bengotow commented on Jul 27, 2016

    @bengotow
    Contributor

    Yep! I'm aware - the full command we use in that commit above is xdg-mime default nylas.desktop x-scheme-handler/#{scheme}. I only bring it up because it has been successfully making N1 the default handler for the mailto protocol on Debian systems and might be more broadly incorporated into Electron.

  9. atypicalprogrammer commented on Mar 16, 2017

    @atypicalprogrammer
    Author

    Any updates on this by anyone?

  10. hron84 commented on Aug 3, 2017

    @hron84

    @baconbrad Not neccessarily. On Linux, proto handlers are also handled via - special - MIME types.

  11. self-assigned this
    on Oct 2, 2017
  12. codebytere commented on Oct 9, 2017

    @codebytere
    Member

    This is now in master 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions