macOS Server daemon: Suggested improvement

When installing as a daemon, VH automatically provides a PLIST file in "/Library/LauchDaemons". This is great.

However, the PLIST file expects the config information to be located in "/Library/vhusbd.ini". To make it more macOS compliant, I suggest the config information should reside in "/Library/Application Support/VirtualHere/vhusbd.ini". 

Editing the PLIST file accordingly does not help. VH seems to ignore the new PLIST location, does not find vhusbd.ini in "/Library", and therefore creates a new PLIST file in "/Library", containing the wrong (unlicensed) information.

I think we have two separate issues:

  1. vhusbdosx does not follow its config file argument given by the -c option. Instead, the config file always has to reside in /Library, no matter what is given by the -c option.
  2. The default location for the config file should be more macOS compliant – not "Library/vhusbd.ini", but "Library/Application Support/VirtualHere/vhusbd.ini".
#2

Thanks for the feedback.

That is a bug, it should listen to the -c argument when using the -b argument, i will fix this in the next build (and the path)

Regarding the -c argument you can manually fix it for now like this

sudo launchctl unload com.virtualhere.vhusbd

sudo vi /Library/LaunchDaemons/com.virtualhere.vhusbd.plist

Edit the -c argument inside the following <string> command

Save and then

sudo mkdir /Library/Application\ Support/VirtualHere

sudo launchctl load /Library/LaunchDaemons/com.virtualhere.vhusbd.plist