From d0e2ed6fa0a58eeb5a86d7128bcc970713a4928c Mon Sep 17 00:00:00 2001 From: Takayama Fumihiko Date: Fri, 31 May 2024 21:42:01 +0900 Subject: [PATCH] Remove get_console_user_server_agent_service_name --- src/share/constants.hpp | 4 ---- src/share/services_utility.hpp | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/share/constants.hpp b/src/share/constants.hpp index 71069e047..2d299784e 100644 --- a/src/share/constants.hpp +++ b/src/share/constants.hpp @@ -255,9 +255,5 @@ class constants final { static const size_t get_local_datagram_buffer_size(void) { return 32 * 1024; } - - static pqrs::osx::launchctl::service_name get_console_user_server_agent_service_name(void) { - return pqrs::osx::launchctl::service_name("org.pqrs.service.agent.karabiner_console_user_server"); - } }; } // namespace krbn diff --git a/src/share/services_utility.hpp b/src/share/services_utility.hpp index 463482de6..cf370e28b 100644 --- a/src/share/services_utility.hpp +++ b/src/share/services_utility.hpp @@ -37,7 +37,7 @@ inline void unregister_core_agents(void) { inline void restart_console_user_server_agent(void) { auto domain_target = pqrs::osx::launchctl::make_gui_domain_target(); - auto service_name = constants::get_console_user_server_agent_service_name(); + auto service_name = pqrs::osx::launchctl::service_name("org.pqrs.service.agent.karabiner_console_user_server"); auto flags = pqrs::osx::launchctl::kickstart_flags::kill | pqrs::osx::launchctl::kickstart_flags::background;