* src/nsfns.m (ns_set_represented_filename): Check whether the file is
a `ubiquitous item', and if so don't display a proxy icon.
else
fstr = @"";
+#if defined (NS_IMPL_COCOA) && defined (MAC_OS_X_VERSION_10_7)
+ /* Work around for Mach port leaks on macOS 10.15 (bug#38618). */
+ NSURL *fileURL = [NSURL fileURLWithPath:fstr isDirectory:NO];
+ BOOL isUbiquitousItem = YES;
+ [fileURL getResourceValue:(id *)&isUbiquitousItem
+ forKey:NSURLIsUbiquitousItemKey
+ error:nil];
+ if (isUbiquitousItem)
+ fstr = @"";
+#endif
+
#ifdef NS_IMPL_COCOA
/* Work around a bug observed on 10.3 and later where
setTitleWithRepresentedFilename does not clear out previous state