Remove WIVRN_USE_SYSTEMD config option

This commit is contained in:
Patrick Nicolas
2026-08-06 19:33:22 +02:00
parent ca59f46751
commit 85a635069f
4 changed files with 32 additions and 37 deletions
+21 -7
View File
@@ -1,3 +1,23 @@
/*
* WiVRn VR streaming
* Copyright (C) 2022-2026 Guillaume Meunier <guillaume.meunier@centraliens.net>
* Copyright (C) 2022-2026 Patrick Nicolas <patricknicolas@laposte.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// Original copyright, from very old copy-pasted parts
// Copyright 2022, Collabora, Ltd.
// SPDX-License-Identifier: BSL-1.0
/*!
@@ -9,7 +29,6 @@
#include "openxr/openxr.h"
#include "sleep_inhibitor.h"
#include "util/u_trace_marker.h"
#include "utils/wivrn_trace.h"
#include "active_runtime.h"
#include "avahi_publisher.h"
@@ -19,6 +38,7 @@
#include "ipc_server_cb.h"
#include "protocol_version.h"
#include "start_application.h"
#include "start_systemd_unit.h"
#include "utils/overloaded.h"
#include "version.h"
#include "wivrn_config.h"
@@ -53,10 +73,6 @@
#include <shared/ipc_protocol.h>
#include <util/u_file.h>
#if WIVRN_USE_SYSTEMD
#include "start_systemd_unit.h"
#endif
// Insert the on load constructor to init trace marker.
U_TRACE_TARGET_SETUP(U_TRACE_WHICH_SERVICE)
@@ -819,13 +835,11 @@ void on_headset_info_packet(const wivrn::from_headset::headset_info_packet & inf
void on_name_acquired(GDBusConnection * connection, const gchar * name, gpointer user_data)
{
#if WIVRN_USE_SYSTEMD
try
{
children = std::make_unique<systemd_units_manager>(connection, update_fsm);
}
catch (...)
#endif
{
children = std::make_unique<forked_children>(update_fsm);
}