Parallels Virtualization SDK - Can't connect to dispatcher

Discussion in 'General Questions' started by BradC4, Apr 4, 2018.

  1. BradC4

    BradC4 Bit poster

    Messages:
    4
    I'm using the Parallels Virtualization SDK Guide to interface with Parallels.

    http://download.parallels.com/deskt...els Virtualization SDK Programmer's Guide.pdf

    I've gotten a basic app working using the C examples to login and logout. The app works if I have previously run prlctl or have the Parallels Desktop app open.

    If I haven't run prlctl or I don't have the Parallels Desktop app open the Login_Local call will fail with error PRL_ERR_CANT_CONNECT_TO_DISPATCHER. A similar issue happens with the Python API.

    I'm guessing that there's a process running on the app that my client app interacts with while the Parallels Desktop app is running.
    I see there's several binaries in /Applications/Parallels Desktop.app/Contents/MacOS that may be what I'm looking for, such as launchd_setup.

    - What is the process that needs to run on my computer in order for my client app to successfully work?
    - Where is there documentation regarding this required process? The Programmer's Guide doesn't contain any reference to this.

    Regards,
    Brad
     
  2. BradC4

    BradC4 Bit poster

    Messages:
    4
    I've made some progress:

    There's a bash script called service in the /Applications/Parallels Desktop.app/Contents/MacOS folder.
    I run the following in the terminal:
    ./service start
    This command does a lot of things but seems to run the dispatcher which is what I want.

    Mods - could you confirm this is the command that should be run? Is there a typical way to automate this at startup? If you can't answer this could I get a contact in the developer team that can answer this?

    Thanks,
    Brad
     

Share This Page