Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XPC server from UI rather then from Daemon #1

Open
iradization opened this issue Dec 14, 2017 · 1 comment
Open

XPC server from UI rather then from Daemon #1

iradization opened this issue Dec 14, 2017 · 1 comment

Comments

@iradization
Copy link

Hi,

I was thinking about modifying the code to make the UI display results that were actually sent from the daemon. This means that UI and Daemon will switch roles.

Unfortunately, I don't see the connection working... in project documentation is said that the XPC server must reside on daemon that ran from launchd. Perhaps that may explain my problem, but perhaps you can think of possible way to activate the xpc listener from the UI rather then the server ?

thanks

@Motti-Shneor
Copy link

You can design your launchd daemon (The XPC Service/listener) so that it starts itself, but does nothing until it receives some command from the UI. this is NOT switching roles - The XPC Service still performs the service - only it is controlled by The XPC protocol. you can start with this project as is, and gradually enhance The XPC protocol commands until they fit your bill. Maybe you don't even need this project as your base - most XPC Services do NOT run constantly as daemons, but are launched by 'launchd' in response to commands sent to them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants