public static string GetHomeDirectory(string userName)
        {
            if (userName == null)
            {
                throw new ArgumentNullException(nameof(userName));
            }

            using (var nsstring = new NSString(userName))
                using (var homeDir = ObjCRuntime.Runtime.GetNSObject <NSString> (NSHomeDirectoryForUser(nsstring.GetHandle())))
                    return(homeDir.ToString());
        }