Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions Sources/FoundationEssentials/ProcessInfo/ProcessInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -597,10 +597,7 @@ extension _ProcessInfo {
}

private static func _getProcessName() -> String {
guard let processPath = CommandLine.arguments.first else {
return ""
}
return processPath.lastPathComponent
return Platform.getFullExecutablePath()?.lastPathComponent ?? ""
}

#if os(macOS)
Expand Down
Loading