mirror of
https://github.com/maxgoedjen/secretive.git
synced 2024-11-30 01:17:06 +00:00
15 lines
336 B
Swift
15 lines
336 B
Swift
import SecretAgentKit
|
|
import AppKit
|
|
|
|
struct StubFileHandleReader: FileHandleReader {
|
|
|
|
let availableData: Data
|
|
var fileDescriptor: Int32 {
|
|
NSWorkspace.shared.runningApplications.filter({ $0.localizedName == "Finder" }).first!.processIdentifier
|
|
}
|
|
var pidOfConnectedProcess: Int32 {
|
|
fileDescriptor
|
|
}
|
|
|
|
}
|