File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,12 @@ private static Task<IEnumerable<ICloudProvider>> DetectGenericCloudDrive()
78
78
driveType = appName ;
79
79
}
80
80
81
+ // iCloud specific
82
+ if ( driveType . StartsWith ( "iCloudDrive" ) )
83
+ driveType = "iCloudDrive" ;
84
+ if ( driveType . StartsWith ( "iCloudPhotos" ) )
85
+ driveType = "iCloudPhotos" ;
86
+
81
87
using var bagKey = clsidSubKey . OpenSubKey ( @"Instance\InitPropertyBag" ) ;
82
88
var syncedFolder = ( string ) bagKey ? . GetValue ( "TargetFolderPath" ) ;
83
89
if ( syncedFolder is null )
@@ -92,8 +98,8 @@ private static Task<IEnumerable<ICloudProvider>> DetectGenericCloudDrive()
92
98
"Amazon Drive" => CloudProviders . AmazonDrive ,
93
99
"Nextcloud" => CloudProviders . Nextcloud ,
94
100
"Jottacloud" => CloudProviders . Jottacloud ,
95
- "iCloudDrive!S-1-5-21-4064190285-3015957005-1528788272-1001!Personal " => CloudProviders . AppleCloudDrive ,
96
- "iCloudPhotos!S-1-5-21-4064190285-3015957005-1528788272-1001!Personal " => CloudProviders . AppleCloudPhotos ,
101
+ "iCloudDrive" => CloudProviders . AppleCloudDrive ,
102
+ "iCloudPhotos" => CloudProviders . AppleCloudPhotos ,
97
103
_ => null ,
98
104
} ;
99
105
if ( driveID is null )
You can’t perform that action at this time.
0 commit comments