From fddfb8eb5719b21524addf4d0fb2b19e761a4d4d Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Sun, 3 Aug 2025 14:20:56 +0200 Subject: [PATCH 1/6] Check sizes for overflow before serializing vectors, strings, and spans --- common/wivrn_serialization.h | 56 +++++++++++++++++++++++++++--------- 1 file changed, 42 insertions(+), 14 deletions(-) diff --git a/common/wivrn_serialization.h b/common/wivrn_serialization.h index 394995bb..938801ef 100644 --- a/common/wivrn_serialization.h +++ b/common/wivrn_serialization.h @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -124,6 +125,13 @@ public: std::runtime_error("Deserialization error\n" + hexdump(raw_data)) {} }; +class serialization_error : public std::runtime_error +{ +public: + serialization_error() : + std::runtime_error("Serialization error") {} +}; + class serialization_packet { std::vector buffer; @@ -547,6 +555,8 @@ struct serialization_traits && !is_st template <> struct serialization_traits { + using size_type = uint16_t; + static constexpr void type_hash(details::hash_context & h) { h.feed("string"); @@ -554,14 +564,17 @@ struct serialization_traits static void serialize(const std::string & value, serialization_packet & packet) { - packet.serialize(value.size()); + if (value.size() > std::numeric_limits::max()) + throw serialization_error{}; + + packet.serialize(value.size()); packet.write(value.data(), value.size()); } static std::string deserialize(deserialization_packet & packet) { std::string value; - size_t size = packet.deserialize(); + size_t size = packet.deserialize(); packet.check_remaining_size(size); @@ -576,13 +589,15 @@ struct serialization_traits } static size_t size(const std::string & value) { - return sizeof(uint16_t) + value.size(); + return sizeof(size_type) + value.size(); } }; template struct serialization_traits> { + using size_type = uint16_t; + static constexpr void type_hash(details::hash_context & h) { h.feed("vector<"); @@ -592,7 +607,10 @@ struct serialization_traits> static void serialize(const std::vector & value, serialization_packet & packet) { - packet.serialize(value.size()); + if (value.size() > std::numeric_limits::max()) + throw serialization_error{}; + + packet.serialize(value.size()); if constexpr (serialization_traits::is_trivially_serializable()) { @@ -608,7 +626,7 @@ struct serialization_traits> static std::vector deserialize(deserialization_packet & packet) { std::vector value; - size_t size = packet.deserialize(); + size_t size = packet.deserialize(); if constexpr (serialization_traits::is_trivially_serializable()) { @@ -635,10 +653,10 @@ struct serialization_traits> static size_t size(const std::vector & value) { if constexpr (is_trivially_serializable()) - return sizeof(uint16_t) + value.size() * sizeof(T); + return sizeof(size_type) + value.size() * sizeof(T); else { - size_t res = sizeof(uint16_t); + size_t res = sizeof(size_type); for (const auto & item: value) res += serialized_size(item); return res; @@ -756,6 +774,9 @@ struct serialization_traits> template struct serialization_traits> { + using size_type = uint8_t; + static_assert(sizeof...(T) <= std::numeric_limits::max() + 1); + template static constexpr void type_list_hash(details::hash_context & h) { @@ -777,7 +798,7 @@ struct serialization_traits> static void serialize(const std::variant & value, serialization_packet & packet) { - packet.serialize(value.index()); + packet.serialize(value.index()); std::visit([&](const auto & x) { packet.serialize(x); }, value); } @@ -794,7 +815,7 @@ struct serialization_traits> static std::variant deserialize(deserialization_packet & packet) { - uint8_t type_index = packet.deserialize(); + size_type type_index = packet.deserialize(); if (type_index >= sizeof...(T)) throw deserialization_error(packet.initial_buffer); @@ -807,7 +828,7 @@ struct serialization_traits> static size_t size(const std::variant & value) { - return 1 + std::visit([](const auto & x) { return serialized_size(x); }, value); + return sizeof(size_type) + std::visit([](const auto & x) { return serialized_size(x); }, value); } }; @@ -850,6 +871,8 @@ struct serialization_traits> template <> struct serialization_traits> { + using size_type = uint16_t; + static constexpr void type_hash(details::hash_context & h) { h.feed("span"); @@ -857,22 +880,27 @@ struct serialization_traits> static void serialize(const std::span & value, serialization_packet & packet) { - packet.serialize(value.size()); + if (value.size() > std::numeric_limits::max()) + throw serialization_error{}; + + packet.serialize(value.size()); packet.write(value); } static std::span deserialize(deserialization_packet & packet) { - size_t size = packet.deserialize(); + size_t size = packet.deserialize(); return packet.read_span(size); } + static bool consteval is_trivially_serializable() { return false; } + static size_t size(const std::span & x) { - return 1 + x.size_bytes(); + return sizeof(size_type) + x.size_bytes(); } }; @@ -929,7 +957,7 @@ struct serialization_traits static size_t size(const crypto::bignum & value) { - return 2 + value.data_size(); + return sizeof(serialization_traits::size_type) + value.data_size(); } }; From 06240858fdde6224ba51fa2827e9efa100f76016 Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Sun, 3 Aug 2025 14:24:49 +0200 Subject: [PATCH 2/6] Avoid loading app icons in the dashboard, add error handling when loading steam icon --- common/application.cpp | 48 ++++++++++++++++++++++++------------------ common/application.h | 2 +- dashboard/apps.cpp | 2 +- 3 files changed, 30 insertions(+), 22 deletions(-) diff --git a/common/application.cpp b/common/application.cpp index 370b6437..c4b2bc6a 100644 --- a/common/application.cpp +++ b/common/application.cpp @@ -116,7 +116,7 @@ std::vector load_steam_icon(const std::filesystem::path & root, int a return {}; } -void read_steam_vr_apps(std::unordered_map & res) +void read_steam_vr_apps(std::unordered_map & res, bool load_icons) { auto [command, root] = find_steam(); if (not root) @@ -166,17 +166,20 @@ void read_steam_vr_apps(std::unordered_map & res) } } - try + if (load_icons) { - const char prefix[] = "steam.app."; - if (app_key.starts_with(prefix)) + try + { + const char prefix[] = "steam.app."; + if (app_key.starts_with(prefix)) + { + uint32_t app_id = stoll(app_key.substr(strlen(prefix))); + app.image = load_steam_icon(*root, app_id, info); + } + } + catch (...) { - uint32_t app_id = stoll(app_key.substr(strlen(prefix))); - app.image = load_steam_icon(*root, app_id, info); } - } - catch (...) - { } if (not app.exec.empty()) @@ -278,7 +281,7 @@ bool contains(std::string_view entries, std::string_view val, char sep = ';') return false; } -std::optional do_desktop_entry(const std::filesystem::path & filename) +std::optional do_desktop_entry(const std::filesystem::path & filename, bool load_icons) { auto data = read_file(filename); std::optional res; @@ -320,10 +323,15 @@ std::optional do_desktop_entry(const std::filesystem::path & filena res->exec = unescape(item.value); if (item.key == "Path") res->path = unescape(item.value); - if (item.key == "Icon") + if (item.key == "Icon" and load_icons) { - if (auto filename = xdg_icon_lookup(std::string{item.value}, 256)) - res->image = load_icon(*filename, 256); + try + { + if (auto filename = xdg_icon_lookup(std::string{item.value}, 256)) + res->image = load_icon(*filename, 256); + } + catch (...) + {} } } @@ -333,7 +341,7 @@ std::optional do_desktop_entry(const std::filesystem::path & filena return res; } -void do_data_dir(std::filesystem::path dir, std::unordered_map & res) +void do_data_dir(std::filesystem::path dir, std::unordered_map & res, bool load_icons) { dir = dir / "applications"; if (not std::filesystem::is_directory(dir)) @@ -356,29 +364,29 @@ void do_data_dir(std::filesystem::path dir, std::unordered_map list_applications(bool include_steam) +std::unordered_map list_applications(bool include_steam, bool load_icons) { std::unordered_map res; if (include_steam) - read_steam_vr_apps(res); + read_steam_vr_apps(res, load_icons); - do_data_dir(xdg_data_home(), res); + do_data_dir(xdg_data_home(), res, load_icons); for (auto && dir: xdg_data_dirs()) - do_data_dir(std::move(dir), res); + do_data_dir(std::move(dir), res, load_icons); if (wivrn::is_flatpak()) { // Try to guess host data dirs - do_data_dir("/run/host/usr/share", res); + do_data_dir("/run/host/usr/share", res, load_icons); } return res; diff --git a/common/application.h b/common/application.h index 6c9314dd..38961247 100644 --- a/common/application.h +++ b/common/application.h @@ -35,5 +35,5 @@ struct application std::optional path; }; -std::unordered_map list_applications(bool include_steam = true); +std::unordered_map list_applications(bool include_steam = true, bool load_icons = true); } // namespace wivrn diff --git a/dashboard/apps.cpp b/dashboard/apps.cpp index 2ab62820..fe24bfa9 100644 --- a/dashboard/apps.cpp +++ b/dashboard/apps.cpp @@ -25,7 +25,7 @@ Apps::Apps(QObject * parent) { - auto apps = wivrn::list_applications(); + auto apps = wivrn::list_applications(true /* Include steam apps */, false /* Don't load icons */); for (const auto & [id, app]: apps) { From de810d1eea7c23e0a84a9b2f38a525c192dfa4e0 Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Sun, 3 Aug 2025 14:27:00 +0200 Subject: [PATCH 3/6] Don't crash the client when the icon cannot be loaded --- client/scenes/lobby_gui.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/client/scenes/lobby_gui.cpp b/client/scenes/lobby_gui.cpp index ecb23353..0036cbe1 100644 --- a/client/scenes/lobby_gui.cpp +++ b/client/scenes/lobby_gui.cpp @@ -440,7 +440,17 @@ void scenes::lobby::gui_connected() if (std::chrono::steady_clock::now() - t0 > 10ms) return default_icon; - it = app_icons.emplace(app.id, imgui_ctx->load_texture(app.image)).first; + try + { + it = app_icons.emplace(app.id, imgui_ctx->load_texture(app.image)).first; + } + catch (std::exception & e) + { + spdlog::warn("Unable to load icon for \"{}\": {}", app.id, e.what()); + + app.image.clear(); + return default_icon; + } } return it->second; } From 9a53aaa2056d3d667e1779e584b9257dca415990 Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Sun, 3 Aug 2025 23:08:15 +0200 Subject: [PATCH 4/6] Add support for paletted icons, fix misc ico loading bugs --- common/utils/load_icon.cpp | 273 +++++++++++++++++++++++++++---------- 1 file changed, 204 insertions(+), 69 deletions(-) diff --git a/common/utils/load_icon.cpp b/common/utils/load_icon.cpp index dd70af54..f4bde8d5 100644 --- a/common/utils/load_icon.cpp +++ b/common/utils/load_icon.cpp @@ -61,13 +61,15 @@ T read(std::span & buffer) return value; } -std::span read(std::span & buffer, size_t size) +template + requires std::is_integral_v +std::span read(std::span & buffer, size_t count) { - if (size > buffer.size()) + if (count * sizeof(T) > buffer.size()) throw std::runtime_error{"File truncated"}; - std::span value{buffer.data(), size}; - buffer = buffer.subspan(size); + std::span value{reinterpret_cast(buffer.data()), count}; + buffer = buffer.subspan(count * sizeof(T)); return value; } @@ -160,41 +162,40 @@ struct ico_file_entry std::span data; }; -int rowstride(int width, int bpp) +constexpr int rowstride(int width, int bpp) { - switch (bpp) - { - case 1: - if ((width % 32) == 0) - return width / 8; - else - return 4 * (width / 32 + 1); - - // case 4: - // if ((width % 8) == 0) - // return width / 2; - // else - // return 4 * (width / 8 + 1); - // - // case 8: - // if ((width % 4) == 0) - // return width; - // else - // return 4 * (width / 4 + 1); - - case 24: - if (((width * 3) % 4) == 0) - return width * 3; - else - return 4 * (width * 3 / 4 + 1); - - case 32: - return width * 4; - - default: - return 0; - } + int words_per_line = (width * bpp + 31) / 32; + return words_per_line * 4; } +static_assert(rowstride(1, 1) == 4); +static_assert(rowstride(8, 1) == 4); +static_assert(rowstride(16, 1) == 4); +static_assert(rowstride(32, 1) == 4); +static_assert(rowstride(33, 1) == 8); + +static_assert(rowstride(1, 4) == 4); +static_assert(rowstride(8, 4) == 4); +static_assert(rowstride(16, 4) == 8); +static_assert(rowstride(32, 4) == 16); +static_assert(rowstride(33, 4) == 20); + +static_assert(rowstride(1, 8) == 4); +static_assert(rowstride(8, 8) == 8); +static_assert(rowstride(16, 8) == 16); +static_assert(rowstride(32, 8) == 32); +static_assert(rowstride(33, 8) == 36); + +static_assert(rowstride(1, 24) == 4); +static_assert(rowstride(8, 24) == 24); +static_assert(rowstride(16, 24) == 48); +static_assert(rowstride(32, 24) == 96); +static_assert(rowstride(33, 24) == 100); + +static_assert(rowstride(1, 32) == 4); +static_assert(rowstride(8, 32) == 32); +static_assert(rowstride(16, 32) == 64); +static_assert(rowstride(32, 32) == 128); +static_assert(rowstride(33, 32) == 132); std::vector load_ico(const std::filesystem::path & filename, int size, int index = -1) { @@ -228,8 +229,10 @@ std::vector load_ico(const std::filesystem::path & filename, int size auto size = read(header); auto offset = read(header); - entry.data = std::span{ico}.subspan(offset, size); + if (offset + size > ico.size()) + return {}; + entry.data = std::span{ico}.subspan(offset, size); if (entry.width == 0) entry.width = 256; if (entry.height == 0) @@ -239,17 +242,13 @@ std::vector load_ico(const std::filesystem::path & filename, int size if (planes != 0 and planes != 1) return {}; - // Ignore 16bpp and less - if (entry.bpp < 24) - continue; - entries.push_back(entry); max_bpp = std::max(max_bpp, entry.bpp); } - const ico_file_entry & best_entry = index >= 0 ? entries.at(index) : [&]() { - const ico_file_entry * best_entry; + const ico_file_entry * best_entry = index >= 0 ? &entries.at(index) : [&]() { + const ico_file_entry * best_entry = nullptr; // Look for the smallest multiple of the requested size int criterion = std::numeric_limits::max(); @@ -269,7 +268,7 @@ std::vector load_ico(const std::filesystem::path & filename, int size } } if (best_entry) - return *best_entry; + return best_entry; // No multiple found: pick the largest icon criterion = 0; @@ -285,17 +284,41 @@ std::vector load_ico(const std::filesystem::path & filename, int size best_entry = &entry; } } - return *best_entry; + return best_entry; }(); - auto data = best_entry.data; + if (not best_entry) + return {}; + + auto data = best_entry->data; auto magic = read(data); if (magic == ICO_PNG_MAGIC) { // PNG file std::vector png_data; - png_data.insert(png_data.end(), data.begin(), data.end()); + + // The PNG magic has already been consumed, put it back + png_data.insert(png_data.end(), data.begin() - 4, data.end()); + + // Check if the PNG is valid + std::vector pixels; + png_image png_ref{ + .version = PNG_IMAGE_VERSION, + .format = PNG_FORMAT_BGRA, + }; + if (not png_image_begin_read_from_memory(&png_ref, png_data.data(), png_data.size())) + return {}; + + pixels.resize(PNG_IMAGE_SIZE(png_ref)); + + if (!png_image_finish_read(&png_ref, nullptr, pixels.data(), 0, nullptr)) + { + png_image_free(&png_ref); + return {}; + } + png_image_free(&png_ref); + return png_data; } else if (magic == 40) @@ -325,44 +348,45 @@ std::vector load_ico(const std::filesystem::path & filename, int size auto w = width; auto h = height / 2; - // Don't bother supporting paletted icons - // std::vector palette; - // - // if (bpp <= 8) - // { - // // Load the palette - // if (used_colors == 0) - // used_colors = 1 << bpp; - // - // palette.resize(used_colors); - // for (int i = 0; i < palette.size(); i++) - // palette[i] = read(data); - // } + std::span palette; // BGRX + + if (bpp <= 16) + { + // Load the palette + if (used_colors == 0) + used_colors = 1 << bpp; + + palette = read(data, used_colors * 4); + } size_t xor_stride = rowstride(w, bpp); size_t and_stride = rowstride(w, 1); size_t dst_stride = 4 * w; - std::span xor_map = read(data, xor_stride * h); - std::span and_map = read(data, and_stride * h); + std::span xor_map = read(data, xor_stride * h); + std::span and_map = read(data, and_stride * h); std::vector dest_buffer; dest_buffer.resize(h * dst_stride); switch (bpp) { - case 24: + case 1: for (int y = 0; y < h; y++) { - uint8_t * src_xor_row = (uint8_t *)xor_map.data() + xor_stride * y; - uint8_t * src_and_row = (uint8_t *)and_map.data() + and_stride * y; + uint8_t * src_xor_row = xor_map.data() + xor_stride * y; + uint8_t * src_and_row = and_map.data() + and_stride * y; uint8_t * dst_row = dest_buffer.data() + dst_stride * (h - 1 - y); for (int x = 0, i = 0; x < w; x++) { - uint8_t b = *src_xor_row++; // Red - uint8_t g = *src_xor_row++; // Green - uint8_t r = *src_xor_row++; // Blue + int colour = (src_xor_row[x / 8] >> (7 - (x % 8))) & 0x1; + if (colour >= used_colors) + return {}; + + uint8_t b = palette[4 * colour + 0]; // Blue + uint8_t g = palette[4 * colour + 1]; // Green + uint8_t r = palette[4 * colour + 2]; // Red // Get alpha from AND mask (0: opaque => 0xff, 1: transparent => 0) uint8_t a = src_and_row[x / 8] & (1 << (7 - x % 8)) ? 0 : 0xff; @@ -373,6 +397,117 @@ std::vector load_ico(const std::filesystem::path & filename, int size *dst_row++ = a; } } + break; + + case 4: + for (int y = 0; y < h; y++) + { + uint8_t * src_xor_row = xor_map.data() + xor_stride * y; + uint8_t * src_and_row = and_map.data() + and_stride * y; + uint8_t * dst_row = dest_buffer.data() + dst_stride * (h - 1 - y); + + for (int x = 0, i = 0; x < w; x++) + { + int colour = (src_xor_row[x / 2] >> (4 - 4 * (x % 2))) & 0xf; + if (colour >= used_colors) + return {}; + + uint8_t b = palette[4 * colour + 0]; // Blue + uint8_t g = palette[4 * colour + 1]; // Green + uint8_t r = palette[4 * colour + 2]; // Red + + // Get alpha from AND mask (0: opaque => 0xff, 1: transparent => 0) + uint8_t a = src_and_row[x / 8] & (1 << (7 - x % 8)) ? 0 : 0xff; + + *dst_row++ = b; + *dst_row++ = g; + *dst_row++ = r; + *dst_row++ = a; + } + } + break; + + case 8: + for (int y = 0; y < h; y++) + { + uint8_t * src_xor_row = xor_map.data() + xor_stride * y; + uint8_t * src_and_row = and_map.data() + and_stride * y; + uint8_t * dst_row = dest_buffer.data() + dst_stride * (h - 1 - y); + + for (int x = 0, i = 0; x < w; x++) + { + int colour = *src_xor_row++; + if (colour >= used_colors) + return {}; + + uint8_t b = palette[4 * colour + 0]; // Blue + uint8_t g = palette[4 * colour + 1]; // Green + uint8_t r = palette[4 * colour + 2]; // Red + + // Get alpha from AND mask (0: opaque => 0xff, 1: transparent => 0) + uint8_t a = src_and_row[x / 8] & (1 << (7 - x % 8)) ? 0 : 0xff; + + *dst_row++ = b; + *dst_row++ = g; + *dst_row++ = r; + *dst_row++ = a; + } + } + break; + + case 16: + for (int y = 0; y < h; y++) + { + uint8_t * src_xor_row = xor_map.data() + xor_stride * y; + uint8_t * src_and_row = and_map.data() + and_stride * y; + uint8_t * dst_row = dest_buffer.data() + dst_stride * (h - 1 - y); + + for (int x = 0, i = 0; x < w; x++) + { + int colour = (src_xor_row[1] << 8) | src_xor_row[0]; + src_xor_row += 2; + + if (colour >= used_colors) + return {}; + + uint8_t b = palette[4 * colour + 0]; // Blue + uint8_t g = palette[4 * colour + 1]; // Green + uint8_t r = palette[4 * colour + 2]; // Red + + // Get alpha from AND mask (0: opaque => 0xff, 1: transparent => 0) + uint8_t a = src_and_row[x / 8] & (1 << (7 - x % 8)) ? 0 : 0xff; + + *dst_row++ = b; + *dst_row++ = g; + *dst_row++ = r; + *dst_row++ = a; + } + } + break; + + case 24: + for (int y = 0; y < h; y++) + { + uint8_t * src_xor_row = xor_map.data() + xor_stride * y; + uint8_t * src_and_row = and_map.data() + and_stride * y; + uint8_t * dst_row = dest_buffer.data() + dst_stride * (h - 1 - y); + + for (int x = 0, i = 0; x < w; x++) + { + uint8_t b = *src_xor_row++; // Blue + uint8_t g = *src_xor_row++; // Green + uint8_t r = *src_xor_row++; // Red + + // Get alpha from AND mask (0: opaque => 0xff, 1: transparent => 0) + uint8_t a = src_and_row[x / 8] & (1 << (7 - x % 8)) ? 0 : 0xff; + + *dst_row++ = b; + *dst_row++ = g; + *dst_row++ = r; + *dst_row++ = a; + } + } + break; case 32: for (int y = 0; y < h; y++) From 88f5f2ace432da6bbbbdbd6385b14c592bf9db78 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 4 Aug 2025 09:40:09 +0200 Subject: [PATCH 5/6] Show warning if no OpenVR library is detected --- dashboard/qml/Main.qml | 12 ++++++++++++ dashboard/settings.cpp | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/dashboard/qml/Main.qml b/dashboard/qml/Main.qml index 17952b9f..ed2b3dc5 100644 --- a/dashboard/qml/Main.qml +++ b/dashboard/qml/Main.qml @@ -74,6 +74,10 @@ Kirigami.ApplicationWindow { // root.pageStack.push(Qt.resolvedUrl("HeadsetStatsPage.qml")); // } // } + + function onJsonConfigurationChanged() { + config.load(WivrnServer); + } } Component.onCompleted: { @@ -153,6 +157,14 @@ Kirigami.ApplicationWindow { visible: VulkanInfo.driverId == "AmdProprietary" || VulkanInfo.driverId == "AmdOpenSource" } + Kirigami.InlineMessage { + Layout.fillWidth: true + text: i18n("No OpenVR compatibility detected, Steam games won't be able to load VR.\nInstall xrizer or OpenComposite.") + type: Kirigami.MessageType.Warning + showCloseButton: true + visible: WivrnServer.openVRCompat.length == 0 && config.openvr == "" + } + Kirigami.InlineMessage { id: message_failed_to_start Layout.fillWidth: true diff --git a/dashboard/settings.cpp b/dashboard/settings.cpp index b0e59d1b..7622f7c2 100644 --- a/dashboard/settings.cpp +++ b/dashboard/settings.cpp @@ -243,6 +243,10 @@ void Settings::load(const wivrn_server * server) else set_openvr(QString::fromStdString(*it)); } + else + { + set_openvr(""); + } } catch (...) { From 55def29a10bda5922e5e336c63365aa2fec723d3 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 4 Aug 2025 09:42:23 +0200 Subject: [PATCH 6/6] Update fr locale --- locale/fr/wivrn-dashboard.po | 68 +++++++++++++++++++++--------------- 1 file changed, 39 insertions(+), 29 deletions(-) diff --git a/locale/fr/wivrn-dashboard.po b/locale/fr/wivrn-dashboard.po index 4cdc45af..fdcfe332 100644 --- a/locale/fr/wivrn-dashboard.po +++ b/locale/fr/wivrn-dashboard.po @@ -5,8 +5,8 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn-dashboard\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-06-18 21:11+0200\n" -"PO-Revision-Date: 2025-06-18 21:12+0200\n" +"POT-Creation-Date: 2025-08-04 09:40+0200\n" +"PO-Revision-Date: 2025-08-04 09:41+0200\n" "Last-Translator: Guillaume Meunier \n" "Language-Team: French <>\n" "Language: French\n" @@ -14,7 +14,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -"X-Generator: Gtranslator 47.1\n" +"X-Generator: Gtranslator 48.0\n" #: dashboard/apk_installer.cpp:167 #, kde-format @@ -82,8 +82,8 @@ msgstr "Vérification de la dernière version..." msgid "No precompiled APK is available for this version." msgstr "Aucun APK précompilé n'est disponible pour cette version." -#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:247 -#: dashboard/qml/Main.qml:329 +#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:259 +#: dashboard/qml/Main.qml:341 #, kde-format msgid "ADB is not installed." msgstr "ADB n'est pas installé." @@ -132,7 +132,7 @@ msgstr "Réinstaller WiVRn" msgid "Install WiVRn" msgstr "Installer WiVRn" -#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:342 +#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:354 #, kde-format msgid "Headsets" msgstr "Casques" @@ -229,29 +229,29 @@ msgstr "Appairer un nouveau casque" msgid "Headset statistics" msgstr "Statistiques" -#: dashboard/qml/Main.qml:103 +#: dashboard/qml/Main.qml:107 #, kde-format msgid "The server does not have CAP_SYS_NICE capabilities." msgstr "Le serveur n'a pas la capacité CAP_SYS_NICE" -#: dashboard/qml/Main.qml:110 +#: dashboard/qml/Main.qml:114 #, kde-format msgid "Fix it" msgstr "Corriger" -#: dashboard/qml/Main.qml:119 +#: dashboard/qml/Main.qml:123 #, kde-format msgid "The CAP_SYS_NICE capability will be used when the server is restarted." msgstr "" "La capacité CAP_SYS_NICE sera utilisée quand le serveur sera redémarré." -#: dashboard/qml/Main.qml:125 +#: dashboard/qml/Main.qml:129 #, kde-format msgctxt "restart the server" msgid "Restart now" msgstr "Redémarrer" -#: dashboard/qml/Main.qml:136 +#: dashboard/qml/Main.qml:140 #, kde-format msgid "" "NVIDIA GPUs require at least driver version 565.77, current version is %1" @@ -259,12 +259,12 @@ msgstr "" "Les GPUs NVIDIA nécessitent au moins le driver 565.77, la version actuelle " "est %1." -#: dashboard/qml/Main.qml:142 +#: dashboard/qml/Main.qml:146 #, kde-format msgid "More info" msgstr "Plus d'infos" -#: dashboard/qml/Main.qml:150 +#: dashboard/qml/Main.qml:154 #, kde-format msgid "" "Use the Mesa (radv) driver for AMD GPUs\n" @@ -273,75 +273,85 @@ msgstr "" "Utilisez le driver Mesa (redv) pour les GPUs AMD\n" "L'encodage matériel avec vaapi ne fonctionne pas avec AMDVLK et AMDGPU-PRO" -#: dashboard/qml/Main.qml:159 +#: dashboard/qml/Main.qml:162 +#, kde-format +msgid "" +"No OpenVR compatibility detected, Steam games won't be able to load VR.\n" +"Install xrizer or OpenComposite." +msgstr "" +"Aucune bibliothèque de compatibilité OpenVR trouvée, les jeux Steam ne " +"pourront pas charger le mode VR.\n" +"Veuillez installer xrizer ou OpenComposite." + +#: dashboard/qml/Main.qml:171 #, kde-format msgid "Server failed to start" msgstr "Le serveur n'a pas pu démarrer" -#: dashboard/qml/Main.qml:165 dashboard/qml/TroubleshootPage.qml:77 +#: dashboard/qml/Main.qml:177 dashboard/qml/TroubleshootPage.qml:77 #, kde-format msgid "Open server logs" msgstr "Ouvrir les logs du serveur" -#: dashboard/qml/Main.qml:202 +#: dashboard/qml/Main.qml:214 #, kde-format msgctxt "whether the server is running, displayed in front of a checkbox" msgid "Running" msgstr "Démarré" -#: dashboard/qml/Main.qml:217 +#: dashboard/qml/Main.qml:229 #, kde-format msgctxt "whether pairing is enabled, displayed in front of a checkbox" msgid "Pairing" msgstr "Appairage" -#: dashboard/qml/Main.qml:230 +#: dashboard/qml/Main.qml:242 #, kde-format msgid "PIN: %1" msgstr "PIN : %1" -#: dashboard/qml/Main.qml:238 dashboard/qml/WizardPage.qml:373 +#: dashboard/qml/Main.qml:250 dashboard/qml/WizardPage.qml:373 #, kde-format msgid "Connect by USB" msgstr "Connexion par USB" -#: dashboard/qml/Main.qml:249 +#: dashboard/qml/Main.qml:261 #, kde-format msgid "No headset is connected or your headset is not in developer mode." msgstr "Le casque n'est pas connecté ou n'est pas en mode développeur." -#: dashboard/qml/Main.qml:257 +#: dashboard/qml/Main.qml:269 #, kde-format msgid "Disconnect" msgstr "Déconnecter" -#: dashboard/qml/Main.qml:274 +#: dashboard/qml/Main.qml:286 #, kde-format msgctxt "automatically started application" msgid "Application" msgstr "Application" -#: dashboard/qml/Main.qml:295 +#: dashboard/qml/Main.qml:307 #, kde-format msgid "Steam information" msgstr "Informations pour Steam" -#: dashboard/qml/Main.qml:313 +#: dashboard/qml/Main.qml:325 #, kde-format msgid "Wizard" msgstr "Assistant" -#: dashboard/qml/Main.qml:320 +#: dashboard/qml/Main.qml:332 #, kde-format msgid "Install the app" msgstr "Installer l'appli" -#: dashboard/qml/Main.qml:349 dashboard/qml/SettingsPage.qml:14 +#: dashboard/qml/Main.qml:361 dashboard/qml/SettingsPage.qml:14 #, kde-format msgid "Settings" msgstr "Paramètres" -#: dashboard/qml/Main.qml:356 dashboard/qml/TroubleshootPage.qml:10 +#: dashboard/qml/Main.qml:368 dashboard/qml/TroubleshootPage.qml:10 #, kde-format msgid "Troubleshoot" msgstr "Dépannage" @@ -352,13 +362,13 @@ msgctxt "don't start an application automatically" msgid "None" msgstr "Aucune" -#: dashboard/qml/SelectGame.qml:21 +#: dashboard/qml/SelectGame.qml:20 #, kde-format msgctxt "choose a custom application to start" msgid "Custom" msgstr "Personnalisé" -#: dashboard/qml/SelectGame.qml:79 +#: dashboard/qml/SelectGame.qml:76 #, kde-format msgctxt "browse a file to choose the application to start" msgid "Browse"