Skip to content

Commit

Permalink
Remove get_console_user_server_agent_service_name
Browse files Browse the repository at this point in the history
  • Loading branch information
tekezo committed May 31, 2024
1 parent e9e50e0 commit d0e2ed6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/share/constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/share/services_utility.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d0e2ed6

Please sign in to comment.