Skip to content
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

Feature: Added support for Sync drive #16947

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Lamparter
Copy link
Contributor

Resolved / Related Issues

Steps used to test these changes

  1. Open Files
  2. Look for sync drives appearing as cloud drives

image

@Lamparter Lamparter marked this pull request as ready for review March 16, 2025 19:01
@Lamparter
Copy link
Contributor Author

I'm unsure exactly how Sync cloud drive works, but since it's incredibly easy to implement I've done it based on what I understand from #16935

{
Name = $"Sync - {folder.Name}",
SyncFolder = directory,
// IconData = (needs icon)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs icon

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There one in the install location C:\Program Files (x86)\Sync\folder.ico

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

{
protected override async IAsyncEnumerable<ICloudProvider> GetProviders()
{
string syncFolderPath = Path.Combine(Constants.UserEnvironmentPaths.HomePath, "Sync");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you change the path in the installer, this would not work.

I think it would be better to modify the DetectGenericCloudDrive method. This method detects the existing cloud drives from the registry. I think that only small changes need to be made so that the SyncDrive is also recognized.

image

image

image

image

kDrive
kDrive,

Sync
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Sync
SyncDrive

I think the above makes more sense.

@yaira2 yaira2 added changes requested Changes are needed for this pull request and removed needs - code review labels Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes requested Changes are needed for this pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Add support for "Sync" & "GoodSync" cloud service
4 participants