Post

Replies

Boosts

Views

Activity

Reply to Interacting with Login Window using third party screen share app
Hi Eskimo , Thanks for your response I can see this information from the linked Read Me file CGEventTaps do not work by default in the pre-login environment <rdar://problem/5636091>. If you need a workaround, please get in touch with DTS. <https://developer.apple.com/support/technical/> I'm not sure what is the correct link to view this issue. Also can you please help me with a workaround/solution for this ? Thanks, Abhilash
Topic: App & System Services SubTopic: Core OS Tags:
Mar ’23
Reply to How to launch a User Agent on Demand
Hi Eskimo, Thank you so much for adding your comments. Our Application is quiet heavy weight and we don't want to run it always in the context of memory footprint. We would like to launch this on-demand. The architecture we follow is same as what you outlined . ScreenShare App server --->MAC System Daemon --->MAC Agent(On Demand) Daemon manages network connections & would try to setup a session in current active console user on demand (LoginWindow/Aqua) by passing a traffic to port. The agent will be quiesced if it doesn't run as console user. But , we aren't able to launch it on demand by monitoring the socketport. Thanks, Abhilash
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’23
Reply to How to launch a User Agent on Demand
Hi Eskimo, I have couple of questions based on your response Why do we need a light weight agent that runs always on GUI Context ?Is it because daemon launching an agent is not a recommended practice ? The latter can then launch the former based on whatever demand criteria you come up with. How do you recommend we do the above ? I also need to pass few run-time arguments to the UI Agent . Should this be a launchctl load command issued from the lightweight agent ? or an on-demand monitors such as port,file system etc. If it's latter can you please suggest on what config needs to be changed to get on demand working (Details on question) and how i can pass run-time arguments while launching such that i can minimize one more level of IPCs between Light Weight Agent <-> UI Agent Thanks again for your response --Abhilash
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’23
Reply to How to launch a User Agent on Demand
It doesn’t have to be a launchd agent and probably shouldn’t be. Rather, make it a simple program that you launch, either as a child process (using say NSTask) or as a standalone app (using NSWorkspace). My app is based on NodeJS and probably doesn't have access to cocoa libraries to make use of NSTask or NSWorkspace. If i fork the standalone app using command line (open -a app.name ) , i don't think pre-login capture would work. Any recommendations on this ?
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’23
Reply to How to launch a User Agent on Demand
Hi Quinn, Thank you so much for your responses. I should have been more clear on my question. From the architecture you suggested above where Light weight Agent launches the App using NSTask/NSWorkspace , i just wanted to confirm if the child process that's newly spawned from agent will have the same privileges as Launchd Agent & can capture the prelogin screen as well. Traditionally Launchd agents capture them , i am not sure if child process spawned from it has required privileges to capture screen. Thanks, Abhilash
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’23