aboutsummaryrefslogtreecommitdiff
path: root/src/zenutil
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenutil')
-rw-r--r--src/zenutil/include/zenutil/service.h4
-rw-r--r--src/zenutil/service.cpp5
2 files changed, 5 insertions, 4 deletions
diff --git a/src/zenutil/include/zenutil/service.h b/src/zenutil/include/zenutil/service.h
index 53c3483aa..1e96031f7 100644
--- a/src/zenutil/include/zenutil/service.h
+++ b/src/zenutil/include/zenutil/service.h
@@ -2,6 +2,8 @@
#pragma once
+#include <zenbase/zenbase.h>
+
#include <filesystem>
#include <optional>
@@ -18,8 +20,10 @@ struct ServiceSpec
{
std::filesystem::path ExecutablePath;
std::string CommandLineOptions;
+#if ZEN_PLATFORM_WINDOWS
std::string DisplayName;
std::string Description;
+#endif // ZEN_PLATFORM_WINDOWS
};
enum class ServiceStatus
diff --git a/src/zenutil/service.cpp b/src/zenutil/service.cpp
index 08ccac512..f85a8e7e3 100644
--- a/src/zenutil/service.cpp
+++ b/src/zenutil/service.cpp
@@ -188,11 +188,8 @@ namespace {
const std::filesystem::path& ExecutablePath,
std::string_view CommandLineOptions,
std::string_view DaemonName,
- std::string_view ServiceDisplayName,
- std::string_view ServiceDescription,
bool Debug)
{
- ZEN_UNUSED(ServiceDisplayName, ServiceDescription);
std::vector<std::string_view> Arguments = SplitArguments(CommandLineOptions);
ExtendableStringBuilder<256> ProgramArguments;
for (const std::string_view Argument : Arguments)
@@ -699,7 +696,7 @@ InstallService(std::string_view ServiceName, const ServiceSpec& Spec)
{
const std::string DaemonName = GetDaemonName(ServiceName);
std::string PList =
- BuildPlist(ServiceName, Spec.ExecutablePath, Spec.CommandLineOptions, DaemonName, Spec.DisplayName, Spec.Description, true);
+ BuildPlist(ServiceName, Spec.ExecutablePath, Spec.CommandLineOptions, DaemonName, true);
const std::filesystem::path PListPath = GetPListPath(DaemonName);
ZEN_INFO("Writing launchd plist to {}", PListPath.string());