@@ -91,16 +91,16 @@ private static Task<IEnumerable<ICloudProvider>> DetectGenericCloudDrive()
9191 "ProtonDrive" => CloudProviders . ProtonDrive ,
9292 "kDrive" => CloudProviders . kDrive ,
9393 "Lucid" => CloudProviders . LucidLink ,
94+ "SyncCom" => CloudProviders . SyncDrive ,
95+ "MagentaCLOUD" => CloudProviders . MagentaCloud ,
9496 _ => null ,
9597 } ;
9698
9799 if ( cloudProvider is null )
98100 continue ;
99101
100102 var nextCloudValue = ( string ? ) namespaceSubKey ? . GetValue ( string . Empty ) ;
101- var ownCloudValue = ( string ? ) clsidSubKey ? . GetValue ( string . Empty ) ;
102- var kDriveValue = ( string ? ) clsidSubKey ? . GetValue ( string . Empty ) ;
103- var lucidLinkValue = ( string ? ) clsidSubKey ? . GetValue ( string . Empty ) ;
103+ var clsidDefaultValue = ( string ? ) clsidSubKey ? . GetValue ( string . Empty ) ;
104104
105105 using var defaultIconKey = clsidSubKey ? . OpenSubKey ( @"DefaultIcon" ) ;
106106 var iconPath = ( string ? ) defaultIconKey ? . GetValue ( string . Empty ) ;
@@ -115,10 +115,12 @@ private static Task<IEnumerable<ICloudProvider>> DetectGenericCloudDrive()
115115 CloudProviders . AppleCloudDrive => $ "iCloud Drive",
116116 CloudProviders . AppleCloudPhotos => $ "iCloud Photos",
117117 CloudProviders . AdobeCreativeCloud => $ "Creative Cloud Files",
118- CloudProviders . ownCloud => ! string . IsNullOrEmpty ( ownCloudValue ) ? ownCloudValue : "ownCloud" ,
118+ CloudProviders . ownCloud => ! string . IsNullOrEmpty ( clsidDefaultValue ) ? clsidDefaultValue : "ownCloud" ,
119119 CloudProviders . ProtonDrive => $ "Proton Drive",
120- CloudProviders . kDrive => ! string . IsNullOrEmpty ( kDriveValue ) ? kDriveValue : "kDrive" ,
121- CloudProviders . LucidLink => ! string . IsNullOrEmpty ( lucidLinkValue ) ? lucidLinkValue : "lucidLink" ,
120+ CloudProviders . kDrive => ! string . IsNullOrEmpty ( clsidDefaultValue ) ? clsidDefaultValue : "kDrive" ,
121+ CloudProviders . LucidLink => ! string . IsNullOrEmpty ( clsidDefaultValue ) ? clsidDefaultValue : "lucidLink" ,
122+ CloudProviders . SyncDrive => ! string . IsNullOrEmpty ( clsidDefaultValue ) ? clsidDefaultValue : "Sync" ,
123+ CloudProviders . MagentaCloud => ! string . IsNullOrEmpty ( clsidDefaultValue ) ? clsidDefaultValue : "MagentaCLOUD" ,
122124 _ => null
123125 } ,
124126 SyncFolder = syncedFolder ,
@@ -349,6 +351,8 @@ private static string GetDriveType(string driveIdentifier, RegistryKey? namespac
349351 return "ownCloud" ;
350352 if ( driveIdentifier . StartsWith ( "ProtonDrive" ) )
351353 return "ProtonDrive" ;
354+ if ( driveIdentifier . StartsWith ( "SyncCom" ) )
355+ return "SyncCom" ;
352356
353357 // Nextcloud specific
354358 var appNameFromNamespace = ( string ? ) namespaceSubKey ? . GetValue ( "ApplicationName" ) ;
0 commit comments