Message Boards

Mac osx multi user problems

Alon Kiriati, modified 8 Years ago.

Mac osx multi user problems

New Member Posts: 3 Join Date: 9/5/14 Recent Posts
Hi,

I encountered some problems running the nativity client on mac osx with different users. I have the nativity server running on root, and each mac user runs a nativity client. No matter what I am doing the icon overlays are shown on the Finder of the first mac user that loaded the nativity events. How do I determine which Finder will show the icon overlay? Is there a way to always use the current users's Finder?

Regards,
Alon
thumbnail
Dennis Ju, modified 8 Years ago.

RE: Mac osx multi user problems

Regular Member Posts: 228 Join Date: 9/30/10 Recent Posts
Hi Alon,

This is a limitation/bug of Liferay Nativity. The problem is that Nativity injects itself into Finder (which is always running as a user process). Every new mac user will open a new Finder process, but the first injected process is already using the hardcoded ports of 33001 and 33002 to communicate with Nativity clients.

The fix would be to have Liferay Nativity dynamically select an open port every time it injects itself into Finder, but I'm not sure how the clients would know which port to connect to. This could perhaps be done using AppleScript or writing a temp file somewhere to the user's directory.
Alon Kiriati, modified 8 Years ago.

RE: Mac osx multi user problems

New Member Posts: 3 Join Date: 9/5/14 Recent Posts
Thanks for the nice solution.
Can be found here:
https://github.com/liferay/liferay-nativity/commit/37a30247ffb3f82fdb7959a2b424c6c0b00d989b
thumbnail
Dennis Ju, modified 8 Years ago.

RE: Mac osx multi user problems

Regular Member Posts: 228 Join Date: 9/30/10 Recent Posts
Hi Alon,

Just a heads up. That only applies to the newer Finder Sync extension. I haven't yet applied the same logic to the older Injector style plugin due to backwards compatibility concerns.