diff --git a/gui/src/main/constants.ts b/gui/src/main/constants.ts index 27e61f6b..57ed5485 100644 --- a/gui/src/main/constants.ts +++ b/gui/src/main/constants.ts @@ -60,3 +60,12 @@ RestartSec=10 [Install] WantedBy=multi-user.target`; }; + +export const SYSTEMD_PATH = (): string => { + if (process.platform === "linux") { + return "/etc/systemd/system/co.anysphere.anysphered.service"; + } else { + process.stderr.write("Platform not supported"); + exit(1); + } +};