From d2191a354eff5c27d5820f7f442ef73752d8b375 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 11 Aug 2025 14:23:31 +0200 Subject: [PATCH 1/4] Improve issue template Add an installation method entry Recommend file attachments for long entries --- .github/ISSUE_TEMPLATE/bug_report.yml | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index b9417e68..098f36d2 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -36,17 +36,33 @@ body: validations: required: true + - type: input + attributes: + label: Installation method + description: Describe how WiVRn and OpenComposite/xrizer were installed + placeholder: flatpak --user, flatpak, AUR, Gentoo/Guru, built from sources... + - type: textarea attributes: label: Server Config - description: Provide the content of `config.json` for the server. - placeholder: Add the content of config.json here... + description: | + Provide the content of `config.json` for the server. + Located in `${XDG_CONFIG_HOME-${HOME}/.config}/wivrn/config.json` + or `~/.var/app/io.github.wivrn.wivrn/config/wivrn/config.json` for the flatpak version + placeholder: | + { + "encoders": [ + {"codec": "h264"} + ] + } - type: textarea attributes: label: Server Logs description: Provide the `wivrn-server` output. - placeholder: Add the output of the wivrn-server here... + placeholder: | + Add the output of the wivrn-server here. + If more than a few lines, prefer file attachment. - type: dropdown id: gpu @@ -64,7 +80,7 @@ body: attributes: label: Vulkan Info description: Provide the output of `vulkaninfo --summary` command. - placeholder: Add the output of vulkaninfo command here... + placeholder: Attach the output as a file here. - type: dropdown id: hmd @@ -90,4 +106,4 @@ body: attributes: label: ADB Logs description: Provide the output of `adb logcat` command. - placeholder: Add the output of adb logcat command here... + placeholder: Attach the output of adb logcat as a file. From a2e470799e8e9fc45567a84016590692052b93bf Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 11 Aug 2025 14:53:32 +0200 Subject: [PATCH 2/4] Add --version option --- server/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/main.cpp b/server/main.cpp index 792bbb8a..970e8260 100644 --- a/server/main.cpp +++ b/server/main.cpp @@ -969,6 +969,7 @@ int main(int argc, char * argv[]) std::string config_file; app.add_option("-f", config_file, "configuration file")->option_text("FILE")->check(CLI::ExistingFile); + auto version_flag = app.add_flag("--version")->description("print version and exit"); auto no_active_runtime = app.add_flag("--no-manage-active-runtime")->description("don't set the active runtime on connection"); auto early_active_runtime = app.add_flag("--early-active-runtime")->description("forcibly manages the active runtime even if no headset present"); auto no_instructions = app.add_flag("--no-instructions")->group(""); @@ -981,6 +982,12 @@ int main(int argc, char * argv[]) CLI11_PARSE(app, argc, argv); + if (*version_flag) + { + std::cout << "WiVRn version " << wivrn::git_version << std::endl; + return 0; + } + if (not config_file.empty()) configuration::set_config_file(config_file); From 461de7c540a94741d7c42ff6619d47c33ff5b990 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 11 Aug 2025 14:58:05 +0200 Subject: [PATCH 3/4] Remove "v" at the beginning of the version --- cmake/GitVersion.cmake | 1 + common/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/cmake/GitVersion.cmake b/cmake/GitVersion.cmake index 431a7520..5732ce39 100644 --- a/cmake/GitVersion.cmake +++ b/cmake/GitVersion.cmake @@ -13,6 +13,7 @@ execute_process( if (GIT_DESC) string(STRIP ${GIT_DESC} GIT_DESC) + string(REGEX REPLACE "^v([0-9])" "\\1" GIT_DESC ${GIT_DESC}) message(STATUS "Setting version to ${GIT_DESC} from git") else() set(GIT_DESC v${CMAKE_PROJECT_VERSION}) diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index be306e28..f6b2d36e 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -7,6 +7,7 @@ else() endif() if (GIT_DESC) + string(REGEX REPLACE "^v([0-9])" "\\1" GIT_DESC ${GIT_DESC}) configure_file(version.cpp.in version.cpp) else () add_custom_target(wivrn-version ALL From 5e4edc9857df103a39b9f54cc5edc36d90d49644 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 11 Aug 2025 15:56:18 +0200 Subject: [PATCH 4/4] Fix lang issue closing for no reason --- tools/check_po.py | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/tools/check_po.py b/tools/check_po.py index c311b751..27612948 100755 --- a/tools/check_po.py +++ b/tools/check_po.py @@ -95,7 +95,7 @@ if __name__ == "__main__": dashboard_ref = polib.pofile(dashboard_pot) for lang in args.lang: - + lang_issues = 0 for po_ref, po in ((client_ref, os.path.join(locale_dir, lang, "wivrn.po")), (dashboard_ref, os.path.join(locale_dir, lang, "wivrn-dashboard.po"))): if not os.path.exists(po): @@ -110,23 +110,23 @@ if __name__ == "__main__": if not i.msgid in entries: missing = missing + 1 print(f"::notice file={po}::{flag(lang)} Translation for {repr(i.msgid)} is missing") + lang_issues += missing if missing > 0: print(f"::warning file={po}::{flag(lang)} {missing} translations missing") - if args.manage_issues: - issues = [i for i in repo.get_issues(state="all", labels = [ISSUE_LABEL]) if i.title == ISSUE_TITLE.format(lang=lang)] - if not issues: - issue = repo.create_issue( - title=ISSUE_TITLE.format(lang=lang), - labels = [ISSUE_LABEL] - ) - else: - for issue in issues: - if issue.state != "open": - issue.edit(state = "open") - else: - if args.manage_issues: - issues = [i for i in repo.get_issues(state="open", labels = [ISSUE_LABEL]) if i.title == ISSUE_TITLE.format(lang=lang)] + if args.manage_issues: + issues = [i for i in repo.get_issues(state="all", labels = [ISSUE_LABEL]) if i.title == ISSUE_TITLE.format(lang=lang)] + if lang_issues > 0: + if issues: for issue in issues: - issue.edit(state = "closed") + if issue.state != "open": + issue.edit(state="open") + else: + issue = repo.create_issue( + title=ISSUE_TITLE.format(lang=lang), + labels=[ISSUE_LABEL] + ) + else: + for issue in issues: + issue.edit(state="closed")