From 38efb9ff28bfcd1da3ad8f32fc5138716c312dc8 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 11 Oct 2025 19:53:59 +0200 Subject: [PATCH] Fix typo, add \n in ufw config file --- dashboard/firewall.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/firewall.cpp b/dashboard/firewall.cpp index a4ee9b45..18834458 100644 --- a/dashboard/firewall.cpp +++ b/dashboard/firewall.cpp @@ -60,13 +60,13 @@ public: pkexec = escape_sandbox("pkexec", "sh", "-c", - "printf '[WiVRn]\\ntitle=WiVRn server\ndescription=WiVRn OpenXR streaming server\nports=" + std::to_string(wivrn::default_port) + "' > /" + conf.string() + " && ufw allow wivrn"); + "printf '[WiVRn]\\ntitle=WiVRn server\ndescription=WiVRn OpenXR streaming server\nports=" + std::to_string(wivrn::default_port) + "\n' > /" + conf.string() + " && ufw allow wivrn"); pkexec->setProcessChannelMode(QProcess::MergedChannels); pkexec->start(); QObject::connect(pkexec.get(), &QProcess::finished, this, [this](int exit_code, QProcess::ExitStatus exit_status) { if (exit_status != QProcess::NormalExit or exit_code) - qWarning() << "ufw configuration exitec with status" << exit_status << "and code" << exit_code; + qWarning() << "ufw configuration exited with status" << exit_status << "and code" << exit_code; needSetupChanged(need_setup()); pkexec.release()->deleteLater(); });