diff options
Diffstat (limited to 'src/zenutil/service.cpp')
| -rw-r--r-- | src/zenutil/service.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/zenutil/service.cpp b/src/zenutil/service.cpp index 9aa866e2c..f2a925e61 100644 --- a/src/zenutil/service.cpp +++ b/src/zenutil/service.cpp @@ -229,7 +229,7 @@ namespace { std::filesystem::path GetPListPath(const std::string& DaemonName) { - char* HomeDir = getenv("HOME"); + char* HomeDir = getenv("HOME"); std::filesystem::path PListFolder = HomeDir; PListFolder /= "Library/LaunchAgents"; return PListFolder / (DaemonName + ".plist"); @@ -889,7 +889,7 @@ StartService(std::string_view ServiceName) { const std::string DaemonName = GetDaemonName(ServiceName); const std::filesystem::path PListPath = GetPListPath(DaemonName); - std::pair<int, std::string> User = ExecuteProgram("id -u"); + std::pair<int, std::string> User = ExecuteProgram("id -u"); if (User.first != 0) { @@ -924,7 +924,6 @@ StopService(std::string_view ServiceName) return MakeErrorCode(Res.first); } - return {}; } |