In Triofox, to support distributed locking, need to know the process name for the Mac Application used to open a file and add it in File Locking Settings. There are two process name lists, one for windows, and the other for Mac. In Distributed Locking Settings, the mac process name is defined under 'Apply lock only to the following Mac process (lower case): '. And the name needs to be in lower cases.
The default mac App process list supports Microsoft Word, Excel, PowerPoint, and Text Editor.
For other applications, to support file locking in Mac client, need to add the process name to the list.
To determine the process name, on the local folder, create a file for the application to open. Name the file so it is easy to search.
In the example here, we create a pdf file called lock001.pdf. Once the file is created, use Acrobat Pro DC to open the file.
Open Terminal. Run 'lsof | grep lock001', to get the processes that open the file.
test-Mac-mini:~ user01$ lsof | grep lock001
QuickLook 42024 user01 txt REG 1,4 203607 35030500 /Users/user01/Documents/lock001.pdf
AdobeAcro 51796 user01 52r REG 1,4 203607 35030500 /Users/user01/Documents/lock001.pdf
Here, the process id for Adobe Acrobat is 51796. Now, run 'ps -p 51796 -w -w ' to get the full process info
test-Mac-mini:~ user01$ ps -p 51796 -w -w
PID TTY TIME CMD
51796 ?? 0:53.56 /Applications/Adobe Acrobat DC/Adobe Acrobat.app/Contents/MacOS/AdobeAcrobat
Here, the last section of the process info is the process name, 'AdobeAcrobat'. To use it in the distributed locking, need to convert it to lower case. The setting should be:
microsoft word;microsoft excel;microsoft powerpoint;textedit;adobeacrobat;
Alternatively, you can find the process name in "Activity Monitor" on the Mac device:
Then, go to your Triofox Server Management Console on your web portal. Update the setting "Apply lock only to the following Mac process (lower case):"
Save the setting.
Restart the Mac client to pick up the new setting. Now, when using Adobe Acrobat Pro DC to open a pdf file in the Mac client drive, Triofox will lock the pdf file.