@@ -86,11 +86,13 @@ private static Task<IEnumerable<ICloudProvider>> DetectGenericCloudDrive()
86
86
driveType = appName ;
87
87
}
88
88
89
- // iCloud specific
89
+ // Drive specific
90
90
if ( driveType . StartsWith ( "iCloudDrive" ) )
91
91
driveType = "iCloudDrive" ;
92
92
if ( driveType . StartsWith ( "iCloudPhotos" ) )
93
93
driveType = "iCloudPhotos" ;
94
+ if ( driveType . StartsWith ( "ownCloud" ) )
95
+ driveType = "ownCloud" ;
94
96
95
97
using var bagKey = clsidSubKey . OpenSubKey ( @"Instance\InitPropertyBag" ) ;
96
98
var syncedFolder = ( string ) bagKey ? . GetValue ( "TargetFolderPath" ) ;
@@ -109,6 +111,7 @@ private static Task<IEnumerable<ICloudProvider>> DetectGenericCloudDrive()
109
111
"iCloudDrive" => CloudProviders . AppleCloudDrive ,
110
112
"iCloudPhotos" => CloudProviders . AppleCloudPhotos ,
111
113
"Creative Cloud Files" => CloudProviders . AdobeCreativeCloud ,
114
+ "ownCloud" => CloudProviders . ownCloud ,
112
115
_ => null ,
113
116
} ;
114
117
if ( driveID is null )
@@ -117,6 +120,8 @@ private static Task<IEnumerable<ICloudProvider>> DetectGenericCloudDrive()
117
120
}
118
121
119
122
string nextCloudValue = ( string ) namespaceSubKey ? . GetValue ( string . Empty ) ;
123
+ string ownCloudValue = ( string ) clsidSubKey ? . GetValue ( string . Empty ) ;
124
+
120
125
results . Add ( new CloudProvider ( driveID . Value )
121
126
{
122
127
Name = driveID switch
@@ -128,6 +133,7 @@ private static Task<IEnumerable<ICloudProvider>> DetectGenericCloudDrive()
128
133
CloudProviders . AppleCloudDrive => $ "iCloud Drive",
129
134
CloudProviders . AppleCloudPhotos => $ "iCloud Photos",
130
135
CloudProviders . AdobeCreativeCloud => $ "Creative Cloud Files",
136
+ CloudProviders . ownCloud => ! string . IsNullOrEmpty ( ownCloudValue ) ? ownCloudValue : "ownCloud" ,
131
137
_ => null
132
138
} ,
133
139
SyncFolder = syncedFolder ,
0 commit comments