How to set WorkingDirectory in Linux?

I’ve searched multiple threads trying to figure out how actually change the duplicacy systemd service to use a custom working directory for the settings.json and logs and other config. Nothing works.

Duplicacy Web Edition 1.0.0 is now available (doesn’t work)

I’ve also tried to set an Environment variable but that also doesn’t work.

Here is my systemd service file

I’ve tried the working directory to have a / at the end, or no / … neither works.
How do I set my duplicacy working directory to be something other than /.duplicacy-web, or /root/.duplicacy-web

If you set HOME to /opt/duplicacy it should work.

confirmed. thank you. For anyone else, here is my service file.