chezmoi: 2.57.0 -> 2.58.0 (#375625)
[NixPkgs.git] / pkgs / applications / video / jellyfin-media-player / fix-web-path.patch
blob3f182fd407eff2d6fb33d0fb2112f2620c575698
1 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
2 index 9df49da..be1c479 100644
3 --- a/src/CMakeLists.txt
4 +++ b/src/CMakeLists.txt
5 @@ -106,7 +106,8 @@ endif()
6 set(RESOURCE_ROOT .)
7 if(APPLE)
8 set(RESOURCE_ROOT Resources)
9 - add_resources(TARGET ${MAIN_TARGET} SOURCES ${CMAKE_SOURCE_DIR}/native/ DEST ${RESOURCE_ROOT}/web-client/extension)
10 + install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/../../jellyfin-web/ DESTINATION ${RESOURCE_ROOT}/web-client/desktop)
11 + install(DIRECTORY ${CMAKE_SOURCE_DIR}/native/ DESTINATION ${RESOURCE_ROOT}/web-client/extension)
12 endif()
14 if(NOT APPLE)
15 @@ -119,6 +120,7 @@ if(NOT APPLE)
16 install(FILES ${loc}/qtwebengine_devtools_resources.pak DESTINATION resources)
17 endif()
18 endforeach()
19 + install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/../../jellyfin-web/ DESTINATION ${INSTALL_RESOURCE_DIR}/web-client/desktop)
20 install(DIRECTORY ${CMAKE_SOURCE_DIR}/native/ DESTINATION ${INSTALL_RESOURCE_DIR}/web-client/extension)
21 endif()
23 diff --git a/src/settings/SettingsComponent.cpp b/src/settings/SettingsComponent.cpp
24 index c398523..7023948 100644
25 --- a/src/settings/SettingsComponent.cpp
26 +++ b/src/settings/SettingsComponent.cpp
27 @@ -748,7 +748,7 @@ QString SettingsComponent::getWebClientUrl(bool desktop)
29 if (url == "bundled")
31 - auto path = Paths::webExtensionPath() + "find-webclient.html";
32 + auto path = Paths::webClientPath("desktop");
34 url = "file:///" + path;
36 --
37 2.36.0