diff --git a/Secretive/Views/SecretDetailView.swift b/Secretive/Views/SecretDetailView.swift index e1878dd..2fd31a3 100644 --- a/Secretive/Views/SecretDetailView.swift +++ b/Secretive/Views/SecretDetailView.swift @@ -21,19 +21,19 @@ struct SecretDetailView: View { .frame(minHeight: 200, maxHeight: .infinity) } - var dashedKeyName: String { - secret.name.replacingOccurrences(of: " ", with: "-") + var dashedUserName: String { + NSUserName().replacingOccurrences(of: " ", with: "-") } var dashedHostName: String { - ["secretive", Host.current().localizedName, "local"] + [Host.current().localizedName, "local"] .compactMap { $0 } .joined(separator: ".") .replacingOccurrences(of: " ", with: "-") } var keyString: String { - keyWriter.openSSHString(secret: secret, comment: "\(dashedKeyName)@\(dashedHostName)") + keyWriter.openSSHString(secret: secret, comment: "\(dashedUserName)@\(dashedHostName)") } func copy() {