Skip to content

Custom Nextcloud protocol on Desktop #1321

Closed

Description

@signalkraft

First off: I would like to contribute this, if interest is there. That's why I put this request in Github, even though it does not fit the bug template. I hope that's the right place for it?

My feature suggestion is to register a custom protocol such as nc:// in the desktop client, similar to the intents that are already being used in the Android app AFAIK. Another example are magnet URIs.

A custom Nextcloud app would then generate these custom URIs and hand them over to the desktop client on click in the browser (or an email) through OS-specific URI-handlers. On first glance, this would require these handlers for the desktop client:

Admins should be able to configure the behavior of link sharing:

  • Default behavior but an additional option / button for custom URIs
  • Only custom URIs
  • Hybrid of both

Hybrid would generate links similar to OneNote's when copying pages from the desktop client: onenote:https://...sharepoint.com/.... Web View: https://....

Another configuration option could control whether the file should be opened over WebDAV or in the local file system (which would need to handle unsycned files / folders).

The resulting UX should especially improve life of employees in companies or other teams that share links via email or Slack. In my experience the current workflow is close to this:

  • I finish working on a file in Excel / Photoshop and would like to share it with somebody
  • I copy the private URL in the sync client and paste it into an Email
  • The recipient opens the URL and sees the file in the Nextcloud web app
  • He/she navigates to his own local copy in the file system based on the breadcrumbs he sees in the web app

Along the way authors might misunderstand public / private URLs, might not find the share button in the web / desktop UI and just copy their local path or the browser URL. Recipients might download the file from the UI and work on a local copy that isn't going to be synchronized, or they might not find the local file because it is not synced yet.

The new workflow would be:

  • I copy the private URL in the sync client and paste it into an Email
  • My clipboard contains a web link, or custom URI, or both (depending on admin's settings)
  • The recipient can click on the custom URI, which gets handed over to the desktop client, which opens the file in the default app, or opens the folder in the file browser

This avoids confusion about the location of the file, it encourages users to work on sycned copies, and it isn't OS-specific - such as WebDAV links I can send to my Linux-using colleagues, but not Windows users.

Another nice-to-have feature would be fallback to the browser app through custom protocol handlers: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerProtocolHandler

That would mean that the custom URI has to start with web+....

Please point out if this idea suits the scope of the desktop client, or if I should contribute this as a standalone app / addon, of if there are existing discussions about this that I couldn't find.

Activity

  1. changed the title [-]Feature Request: Custom Nextcloud protocol on Desktop[/-] [+]Feature Proposal: Custom Nextcloud protocol on Desktop[/+] on Jul 2, 2019
  2. jospoortvliet commented on Jul 2, 2019

    @jospoortvliet
    Member

    Very interesting idea! @jancborchardt @nextcloud/designers probably have thoughts about it ;-)

    Thanks for offering to implement it. Would you be able to do that cross-platform, you think?

  3. jancborchardt commented on Jul 15, 2019

    @jancborchardt
    Member

    This would be the call of @rullzer @MorrisJobke I assume?

    Design-wise my first thought is that it should be called nextcloud://… instead of cryptic nc://… ;)

  4. added
    confirmed
    on May 18, 2021
  5. mgallien commented on May 18, 2021

    @mgallien
    Contributor

    @signalkraft are you still interested to work on that ?
    That could be really interesting to get.

  6. signalkraft commented on May 18, 2021

    @signalkraft
    Author

    @mgallien interested yes, but in my work we've since switched off of Nextcloud. One of the reasons was that editing files locally from links was much more complicated than in Sharepoint. So I'm not likely to find the time soon.

  7. mkrecek234 commented on Sep 9, 2021

    @mkrecek234

    Would be MUCH appreciated. Exactly what is required for proper collaboration on all possible file types and editing applications👍🏼

  8. mgallien commented on Sep 30, 2021

    @mgallien
    Contributor

    @tobiasKaminsky interesting future feature

  9. tobiasKaminsky commented on Oct 13, 2021

    @tobiasKaminsky
    Member

    A bit easier approach, and therefore faster to implement might be:
    Having an "open locally" button on public links, which then uses nextcloud://server/fileId to pass it to Desktop.

    Downside is that user has to go via web.

  10. bbceg commented on Oct 14, 2021

    @bbceg

    A bit easier approach, and therefore faster to implement might be: Having an "open locally" button on public links, which then uses nextcloud://server/fileId to pass it to Desktop.

    Downside is that user has to go via web.

    Seems like a good MVP to me. Can always improve on it later when time permits...

  11. changed the title [-]Feature Proposal: Custom Nextcloud protocol on Desktop[/-] [+]Custom Nextcloud protocol on Desktop[/+] on Aug 12, 2024
  12. claucambra commented on Oct 16, 2024

    @claucambra
    Contributor

    We now have edit locally :)

  13. bbceg commented on Oct 16, 2024

    @bbceg

    @claucambra Thanks for the heads up.

    One issue I'm seeing: If I share an internal link it opens the browser and downloads the file before I get a chance to select "Edit locally". Is there any way to either prevent the download or force the link to open via the client without going via the browser?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions