From fe81d91affd516b6ef37d539fa2bfc599ab72d9e Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Sun, 29 Sep 2024 16:38:53 +0200 Subject: [PATCH] xdg-desktop-portal-hyprland: update revert 15932f0f9e4185faad4e90fa53a09a59d2a72fdf to avoid issues with pipewire [https://github.com/hyprwm/xdg-desktop-portal-hyprland/commit/15932f0f9e4185faad4e90fa53a09a59d2a72fdf] --- .../xdg-desktop-portal-hyprland.bb | 1 + .../xdg-desktop-portal-hyprland.inc | 4 +- ...rt-core-add-version-and-improve-help.patch | 59 +++++++++++++++++++ 3 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 dynamic-layers/meta-qt6/recipes-qt/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland/0001-Revert-core-add-version-and-improve-help.patch diff --git a/dynamic-layers/meta-qt6/recipes-qt/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland.bb b/dynamic-layers/meta-qt6/recipes-qt/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland.bb index e652187..bab1e49 100644 --- a/dynamic-layers/meta-qt6/recipes-qt/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland.bb +++ b/dynamic-layers/meta-qt6/recipes-qt/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland.bb @@ -5,6 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=e0f1d50df739a9fb8eae12a8f37ce352" SRC_URI:append = " \ file://0001-meson.build-Dont-build-hyprland-share-picker-with-me.patch \ + file://0001-Revert-core-add-version-and-improve-help.patch \ " require xdg-desktop-portal-hyprland.inc diff --git a/dynamic-layers/meta-qt6/recipes-qt/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland.inc b/dynamic-layers/meta-qt6/recipes-qt/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland.inc index 41e1317..97eb5cf 100644 --- a/dynamic-layers/meta-qt6/recipes-qt/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland.inc +++ b/dynamic-layers/meta-qt6/recipes-qt/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland.inc @@ -1,3 +1,3 @@ SRC_URI = "gitsm://github.com/hyprwm/xdg-desktop-portal-hyprland.git;protocol=https;nobranch=1" -SRCREV = "73b8c4f1150040644cf678aa8bbf2cec48a433cf" -PV = "1.3.4" +SRCREV = "7e500e679ede40e79cf2d89b5f5fa3e34923bd26" +PV = "1.3.6" diff --git a/dynamic-layers/meta-qt6/recipes-qt/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland/0001-Revert-core-add-version-and-improve-help.patch b/dynamic-layers/meta-qt6/recipes-qt/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland/0001-Revert-core-add-version-and-improve-help.patch new file mode 100644 index 0000000..b207187 --- /dev/null +++ b/dynamic-layers/meta-qt6/recipes-qt/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland/0001-Revert-core-add-version-and-improve-help.patch @@ -0,0 +1,59 @@ +From 72cdf9a1eb442929d4e169168c54dc4af1bf15b7 Mon Sep 17 00:00:00 2001 +From: Markus Volk +Date: Sun, 29 Sep 2024 16:33:52 +0200 +Subject: [PATCH] Revert "core: add --version and improve --help" + +This reverts commit 15932f0f9e4185faad4e90fa53a09a59d2a72fdf. +--- + CMakeLists.txt | 2 -- + src/main.cpp | 14 +++++--------- + 2 files changed, 5 insertions(+), 11 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 66773db..8f194f7 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -21,8 +21,6 @@ else() + message(STATUS "Configuring XDPH in Release with CMake") + endif() + +-add_compile_definitions(XDPH_VERSION="${VER}") +- + include_directories(. "protocols/") + + # configure +diff --git a/src/main.cpp b/src/main.cpp +index cdeb83d..d7a4482 100644 +--- a/src/main.cpp ++++ b/src/main.cpp +@@ -4,12 +4,11 @@ + #include "core/PortalManager.hpp" + + void printHelp() { +- std::cout << R"#(┃ xdg-desktop-portal-hyprland +-┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +-┃ -v (--verbose) → enable trace logging +-┃ -q (--quiet) → disable logging +-┃ -h (--help) → print this menu +-┃ -V (--version) → print xdph's version ++ std::cout << R"#(| xdg-desktop-portal-hyprland ++| -------------------------------------- ++| -v (--verbose) > enable trace logging ++| -q (--quiet) > disable logging ++| -h (--help) > print this menu + )#"; + } + +@@ -28,9 +27,6 @@ int main(int argc, char** argv, char** envp) { + else if (arg == "--help" || arg == "-h") { + printHelp(); + return 0; +- } else if (arg == "--version" || arg == "-V") { +- std::cout << "xdg-desktop-portal-hyprland v" << XDPH_VERSION << "\n"; +- return 0; + } else { + printHelp(); + return 1; +-- +2.46.0 +