aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlan Third2019-12-17 21:17:46 +0000
committerAlan Third2019-12-22 11:47:28 +0000
commitbfc54230c56dc85cd8a8073962cf6ed00758e1a6 (patch)
tree886f773ba51b18be7c9e55ef8cd1beb79707b90d /src
parent36abf6864604b3061c2e070f8997491fa2bce44c (diff)
downloademacs-bfc54230c56dc85cd8a8073962cf6ed00758e1a6.tar.gz
emacs-bfc54230c56dc85cd8a8073962cf6ed00758e1a6.zip
Check if file is in iCloud drive (bug#38618)
* src/nsfns.m (ns_set_represented_filename): Check whether the file is a `ubiquitous item', and if so don't display a proxy icon.
Diffstat (limited to 'src')
-rw-r--r--src/nsfns.m11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nsfns.m b/src/nsfns.m
index 4c1fb76deae..1d3aea038ae 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -490,6 +490,17 @@ ns_set_represented_filename (struct frame *f)
490 else 490 else
491 fstr = @""; 491 fstr = @"";
492 492
493#if defined (NS_IMPL_COCOA) && defined (MAC_OS_X_VERSION_10_7)
494 /* Work around for Mach port leaks on macOS 10.15 (bug#38618). */
495 NSURL *fileURL = [NSURL fileURLWithPath:fstr isDirectory:NO];
496 BOOL isUbiquitousItem = YES;
497 [fileURL getResourceValue:(id *)&isUbiquitousItem
498 forKey:NSURLIsUbiquitousItemKey
499 error:nil];
500 if (isUbiquitousItem)
501 fstr = @"";
502#endif
503
493#ifdef NS_IMPL_COCOA 504#ifdef NS_IMPL_COCOA
494 /* Work around a bug observed on 10.3 and later where 505 /* Work around a bug observed on 10.3 and later where
495 setTitleWithRepresentedFilename does not clear out previous state 506 setTitleWithRepresentedFilename does not clear out previous state