We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bfffaa commit bdf9becCopy full SHA for bdf9bec
ax/Sources/AXHelper/main.swift
@@ -60,6 +60,15 @@ func checkAccessibilityPermissions() {
60
}
61
62
63
+// Helper function to get the name of the parent process
64
+func getParentProcessName() -> String? {
65
+ let parentPid = getppid() // Get parent process ID
66
+ if let parentApp = NSRunningApplication(processIdentifier: parentPid) {
67
+ return parentApp.localizedName ?? parentApp.bundleIdentifier
68
+ }
69
+ return nil
70
+}
71
+
72
// MARK: - Codable command envelopes -------------------------------------------------
73
74
struct CommandEnvelope: Codable {
0 commit comments