File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -588,6 +588,10 @@ public func NSUserName() -> String {
588
588
return userName. _swiftObject
589
589
}
590
590
591
+ public func NSFullUserName( ) -> String {
592
+ NSUnimplemented ( )
593
+ }
594
+
591
595
internal func _NSCreateTemporaryFile( _ filePath: String ) throws -> ( Int32 , String ) {
592
596
let template = " . " + filePath + " .tmp.XXXXXX "
593
597
let maxLength = Int ( PATH_MAX) + 1
Original file line number Diff line number Diff line change @@ -140,4 +140,12 @@ open class ProcessInfo: NSObject {
140
140
open var systemUptime : TimeInterval {
141
141
return CFGetSystemUptime ( )
142
142
}
143
+
144
+ open var userName : String {
145
+ return NSUserName ( )
146
+ }
147
+
148
+ open var fullUserName : String {
149
+ return NSFullUserName ( )
150
+ }
143
151
}
You can’t perform that action at this time.
0 commit comments