From cdd3c995a4f2e0b695b0c3809168db9df6e5855d Mon Sep 17 00:00:00 2001 From: Jerry Jacobs Date: Wed, 3 Apr 2024 22:41:59 +0200 Subject: [PATCH] Document how to override the shipped syncthing daemon to be managed by Syncthing macOS for a custom one. Fixes #212 --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 35e060f..de98a91 100644 --- a/README.md +++ b/README.md @@ -191,6 +191,23 @@ jerry@Jerrys-iMac ~ % defaults read com.github.xor-gate.syncthing-macosx } ``` +### Override Syncthing Daeomon `Executable` property (power-users only) + +If you want to use the nice GUI but have your own executable located outside the `Syncthing.app` bundle, +then the `Executable` configuration parameter can be manually overwritten with the `defaults` commandline +tool using builtin Terminal or iTerm2. The last arguments should be changed to the syncthing daemon golang +application. + +``` +defaults write com.github.xor-gate.syncthing-macosx Executable /Users/jerry/develop/Syncthing/exe/syncthing +``` + +To restore it back to the bundle path just use delete of the property. It will automatically reset it back. + +``` +defaults delete com.github.xor-gate.syncthing-macosx Executable +``` + ## Dependency management [CocoaPods](https://cocoapods.org/) is used for dependency management. It can be installed