Fetch Process Name With runningApplicationWithProcessIdentifier: and OSXFuse

419 Views Asked by At

I am using OSXFuse and get the processID of the application that wants to read a file in the FUSE Filesystem on Mac. Using the OSXFuse [GMUserFileSystem currentContext], we fetch the process ID and now I would like to get the application name from this process ID. Most of the time, Finder is the calling process and its running under current logged in User privileges. I am trying to pass the process ID to runningApplicationWithProcessIdentifier: to fetch the process details including its name. However runningApplicationWithProcessIdentifier: returns nil. I have ensured the process ID is valid and also under user privileges. What might be wrong?

I am aware there are other ways like using some raw C based api's for fetching the process name, but I would like to fetch it using runningApplicationWithProcessIdentifier: as it can give more useful information

0

There are 0 best solutions below