From 95ab427517014e4d475ca065f47b5a794718268c Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 23 Jun 2025 12:59:36 +0200 Subject: [PATCH] Fix system bus -> session bus --- server/start_application.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/start_application.cpp b/server/start_application.cpp index e23f0c82..87e1c58b 100644 --- a/server/start_application.cpp +++ b/server/start_application.cpp @@ -39,7 +39,7 @@ static int get_service_pid(const std::string & service_name, pid_t & pid) ret = sd_bus_open_user(&bus); if (ret < 0) { - std::cerr << "Failed to connect to system bus: " << strerror(-ret) << std::endl; + std::cerr << "Failed to connect to session bus: " << strerror(-ret) << std::endl; return ret; } @@ -88,11 +88,11 @@ int start_service(const std::string & service_name) int ret = 0; - // Connect to the system bus + // Connect to the session bus ret = sd_bus_open_user(&bus); if (ret < 0) { - std::cerr << "Failed to connect to system bus: " << strerror(-ret) << std::endl; + std::cerr << "Failed to connect to session bus: " << strerror(-ret) << std::endl; return ret; } @@ -124,11 +124,11 @@ bool is_service_active(const std::string & service_name) bool is_active = false; int ret = 0; - // Connect to the system bus + // Connect to the session bus ret = sd_bus_open_user(&bus); if (ret < 0) { - std::cerr << "Failed to connect to system bus: " << strerror(-ret) << std::endl; + std::cerr << "Failed to connect to session bus: " << strerror(-ret) << std::endl; return false; }