Skip to content

[Windows] File Explorer - Integrate a Cloud Storage Provider: Drop down sub paths #5295

Closed

Description

@JarbyDev

WIll be nice have owncloud client be integrated in file explorer like Dropbox and one Drive, having the shortcut in the left side underneath quick Access. with the option to click in the > and see the folder inside owncloud. see pics

More info can be found at: https://msdn.microsoft.com/en-us/library/windows/desktop/dn889934%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396

pic1
pic2

Activity

  1. changed the title [-]Feature Request - file Explorer - owncloud Integrate a Cloud Storage Provider[/-] [+][Windows] File Explorer - Integrate a Cloud Storage Provider[/+] on Nov 3, 2016
  2. changed the title [-][Windows] File Explorer - Integrate a Cloud Storage Provider[/-] [+][Windows] File Explorer - Integrate a Cloud Storage Provider: Drop down sub paths[/+] on Nov 3, 2016
  3. hodyroff commented on Nov 17, 2016

    @hodyroff

    How much effort would that be?

  4. svolke commented on Apr 1, 2017

    @svolke

    I would really like to see this moving forward. Having this not solved makes owncloud feel like a second class citizen on Windows 10 systems, as everybody (Dropbox, Onedrive, etc.) has full integration, but owncloud does not.

    I am willing to hack this in. The MSDN article makes the needed registry handling pretty clear. Could you point me to the respective source files where I could add the integration?
    I've already taken a look at the windows shell integration folder, but having a hard time finding the entry point into the code. Or maybe this should be a third module beside shell integration and explorer overlay?

  5. jturcotte commented on Apr 3, 2017

    @jturcotte
    Contributor

    shell_integration/windows is the right place and this could just be integrated directly in the code.

    The challenging part however is that we pre-build those DLLs on developer machines, which means that we can't put any icon or brand name (like ownCloud) in the code unless we build the whole client with MSVC (#2717).

    Another option is to pass all branding-related resources through the SocketAPI like we currently do with the Share menu title, but this would mean passing icons on the socket every single time an application opens an explorer window (even if not navigating to the ownCloud folder), so not sure if users will like this.

    Maybe this is only done by registry hacks though, in that case there might be an easier solution as this could be done by the client itself and not the extension.

  6. jturcotte commented on Aug 11, 2017

    @jturcotte
    Contributor

    I've been looking at implementing this but the fact that we support multiple accounts and folders makes this difficult to implement while making sure that:

    • Uninstalling the client will remove all the namespace icon from Explorer's root
    • We're not cluttering explorer by adding a root namespace for every account+folder

    OneDriver and Dropbox, for example, only seem to support a single sync folder and account, so it's pretty straightforward. But in our case this makes things quite complicated. I've thought of the following solutions:

    Add a namespace icon at the root of the explorer tree for every folder connection

    • This solution would make it difficult to remove everything when we uninstall, we'd need to add complex logic to the uninstaller to walk over all namespaces and look for something that binds them to the client being uninstalled. Re-installing (when updating) would also need to re-add all those entries by parsing the existing config.
    • This will clutter the explorer view of the user when using multiple accounts or folder connections. The only way it seems to be possible is by editing the registry so we'd need to somehow allow the user to customize this through the client's interface

    Only add the first folder connection as a namespace

    This would make it easier and would be fine for most users but would be an incomplete solution and still not trivial to implement and maintain.

    Implement a custom Shell Namespace Extensions to show a tree of accounts/folders registered

    This could be a nice solution if it's possible to create a shell extension to handle only the root folder, allowing us to delegate to regular Shell Instance Objects for each sync root. The problem is that we'd probably put this in the same DLLs as the overlay icons and context menu extensions, and this means that the only way to fetch the list of root folder would be through the SocketAPI (since it's the same binary for every branding). This means that the root folder would be empty when the client is not running, unlike Dropbox or OneDrive namespaces which still work perfectly fine when their sync client isn't running.

    Just keep using Quick Access folders like we already do

    This is what I'm currently going for in #2446. This works well, we can have one icon for every sync root and the users can edit them as they wish.

    So unless you see other benefits than having an icon to adding ownCloud to the root level of the Navigation Pane, I think we should stick with favorite links. Another advantage of favorites is that the correct path appears in the address bar, while a Navigation Pane namespace creates hides the path on disk and shows itself as a logical root.

  7. svolke commented on Aug 26, 2017

    @svolke

    Sorry for the long silence. Unfortunately, I cannot allocate time to help out on this one.
    However, I want to share some thoughts...

    A proper integration needs two things:

    • a sync root provider for every owncloud account
    • the integration into the navigation pane

    All of this is done through the registry, and requires updates only when sync roots change or the client is uninstalled.
    The branding-related things (in this case only the client name and the icon location) could be passed through the socket on these rare events.

    Sync root provider

    Windows needs one sync root provider per account. This marks the directory where the account is synced to and associates it with ownCloud. Basically, it allows Windows to query who is responsible for this directory.
    We do not need to worry about the individual folders that are synced for the account, as all of them are located in the same sync root.
    So an update of the registry entries is only needed, when the sync root changes.

    Required information for the registry are:

    • Name of the sync client ("DIsplayNameResource")
    • Icon location of the sync client ("IconResource")
    • Sync root location ("UserSyncRoots")
    • ID of the account that is synced to this root
    • ID of the sync client

    Navigation Pane integration

    This one is harder.
    The best way (in my opinion) would be the implementation of a custom shell extension. The guide in https://msdn.microsoft.com/en-us/library/windows/desktop/dn889934%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396 shows how to integrate one sync provider and hook it under the desktop folder.
    We could use this guide to add one virtual ownCloud folder to the navigation pane.
    Then, for every sync account, we just register the sync root as a child of this virtual folder. Since the sync root folder can be configured as a link to the actual sync root, again we do not need to worry about synced folders, but only about the sync root itself.

    Information needed:

    • Client name and client icon location for the virtual root folder
    • Account name for every sync root folder
  8. jturcotte commented on Aug 26, 2017

    @jturcotte
    Contributor

    We do not need to worry about the individual folders that are synced for the account, as all of them are located in the same sync root.

    Humm I think a sync root by definition is something that has a different root folder on the local disk. This is what we call "Folder Sync Connection" in the client is. By default we only have one, but we do support having multiple for each account.

    Personally I don't think it's just a matter of implementing it, my impression is that we take more from the user than what we give them by implementing this feature because:

    • They won't be able to use the integration unless the client is running if we implement a custom shell extension
    • The uninstallation might either be difficult to maintain or might not work as expected if we cut some corners.

    Both issues essentially because we need to continue supporting multiple accounts and folders.

    Meanwhile, I believe the navigation pane integration doesn't give much over our current use of Quick Access bookmarks. So we shouldn't just implement this blindly, we should first look at what this would give the user vs. Quick Access bookmarks, and evaluate if the cost is worth the benefit. @pmaier1 should probably be involved in this decision.

    That Dropbox and OneDrive support it is not a good argument by itself since they don't need to support multiple accounts and therefore didn't face the same issues.

  9. michaelstingl commented on Sep 4, 2017

    @michaelstingl
    Contributor

    With Dropbox, you can connect multiple accounts on the server-side. It looks like only one account on the device is needed:
    https://www.dropbox.com/help/4270

    OneDrive can have multiple accounts on one device. Each account has an own integration, and each account has it's own settings window:
    cursor_and_boot_camp

    Could creation be an option in the wizard for each account/folderpair ?

  10. jturcotte commented on Sep 5, 2017

    @jturcotte
    Contributor

    @michaelstingl It could be an idea of the wizard, yes. If users choose what to put in explorer, enabling them to add/remove each folder integration through the UI this would make the "Add a namespace icon at the root of the explorer tree for every folder connection" option above a good way to go (the user can control the explorer clutter).
    We'd need to find a way for the installer to read the client config file to know which one to remove on uninstall, and which one to add on reinstall/update. Maybe something that would be easier to do once we have the MSI installer (#860)?

    And what do you see as an advantage to implement all this? What is the user getting in exchange?

  11. michaelstingl commented on Sep 8, 2017

    @michaelstingl
    Contributor

    What is the user getting in exchange?

    @jturcotte Users would get their ownCloud data back. In Win 10, it's very difficult to find your ownCloud data. Here is an example when you try open a file with text editor (no ownCloud, but OneDrive everywhere):

    windows_10_pro_x64_and_ie11_-_win8_1

    Accessing ownCloud data from Word 2016 on Win 10, is nearly impossible:

    word2016-win10

    This is the feedback I've got from an ownCloud admin:

    Our institutions often prepare the computers for the end-users and the immediate appearance of ownCloud/$APPLICATION_NAME is important for usage.

    As an 🍎-fanboy, I wasn't aware about this issue, but in the last time I've heard this feedback more often.

    00008190

  12. 22 remaining items

  13. gidhap commented on Jan 13, 2018

    @gidhap

    I used todays testpilotcloud-2.5.0.8981-nightly20180112-setup.exe and - here you go

    owncloud_testpilot

  14. DanielHilpoltsteiner commented on Feb 6, 2018

    @DanielHilpoltsteiner

    @gidhap thanks for sharing this.
    I installed the latest nightly build and the owncloud appears pinned in the normal explorer window :)
    but using another application (for example MS Word 2016, or pick whatever program you want) and open directories from within the application, the owncloud pin does not show up (dropbox, gdrive and onedrive do)

    so current nightly is only the first step to the solution :)

  15. guruz commented on Feb 8, 2018

    @guruz
    Contributor

    @DanielHilpoltsteiner The problem could be if it is a 32 bit application? See

    // FIXME: Not doing so at the moment means that explorer will show the cloud provider, but 32bit processes' open dialogs (like the ownCloud client itself) won't show it.

    Maybe you can verify this in task manager?

  16. DanielHilpoltsteiner commented on Feb 8, 2018

    @DanielHilpoltsteiner

    thanks @guruz , you're completely right.. :)

    does the installer decide itself which version gets installed (32 bit vs 64 bit)?
    I feel a bit blind, as there seems to be no separate 64 bit version (http://download.owncloud.com/desktop/daily/)

  17. michaelstingl commented on Mar 19, 2018

    @michaelstingl
    Contributor

    I opened a new issue for the MS Office 2016 integration: #6394

  18. michaelstingl commented on Mar 20, 2018

    @michaelstingl
    Contributor

    #6113 seems to work fine in the daily builds. @dschmidt Plz check what needs to be done in MSI?

  19. added
    ReadyToTest
    and removed on Apr 2, 2018
  20. SamuAlfageme commented on Jun 4, 2018

    @SamuAlfageme
    Contributor

    Can be closed as the File Explorer integration is working as expected for both NSIS and MSI installers (64bit only for the latter, discussion on 32bit is meant to happen on #6565 - @DanielHilpoltsteiner we could use your input on the issue)

  21. jnweiger commented on Aug 8, 2018

    @jnweiger
    Contributor

    WIN10

    OK: msi setup wizard offers the explorer integration, default on.
    grafik

    OK: when setup finishes, user is asked to close windows explorer

    Restart explorer can fail. Reason was 'files in use'
    grafik
    But okay. There is a system restart suggested after that error. That is safe.

    OK: overlay icons and right click menu works as expected. (even without a reboot).
    grafik

  22. guruz commented on Aug 10, 2018

    @guruz
    Contributor

    @jnweiger Overlay icons, right click menus and the sidebar are 3 different implementations :-)
    Do you see the testpilotcloud sidebar icon like in #5295 (comment) ?

  23. jnweiger commented on Aug 10, 2018

    @jnweiger
    Contributor

    Yeah, three things. Sorry.

    Here is the third:
    grafik

    OK
    very nice! It's even above onedrive :-)

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

    Design & UXEnhancementReadyToTestWindowsblue-ticket

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions