mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
Fix web client directory name on Windows (#4099)
This commit is contained in:
@@ -271,7 +271,7 @@ std::string tr_getWebClientDir([[maybe_unused]] tr_session const* session)
|
|||||||
{
|
{
|
||||||
auto const dir = win32_get_known_folder(*folder_id);
|
auto const dir = win32_get_known_folder(*folder_id);
|
||||||
|
|
||||||
if (auto const path = tr_pathbuf{ dir, "/Transmission/Web"sv }; isWebClientDir(path))
|
if (auto const path = tr_pathbuf{ dir, "/Transmission/public_html"sv }; isWebClientDir(path))
|
||||||
{
|
{
|
||||||
return std::string{ path };
|
return std::string{ path };
|
||||||
}
|
}
|
||||||
@@ -283,7 +283,7 @@ std::string tr_getWebClientDir([[maybe_unused]] tr_session const* session)
|
|||||||
auto const module_path = tr_win32_native_to_utf8({ std::data(wide_module_path) });
|
auto const module_path = tr_win32_native_to_utf8({ std::data(wide_module_path) });
|
||||||
if (auto const dir = tr_sys_path_dirname(module_path); !std::empty(dir))
|
if (auto const dir = tr_sys_path_dirname(module_path); !std::empty(dir))
|
||||||
{
|
{
|
||||||
if (auto const path = tr_pathbuf{ dir, "/Web"sv }; isWebClientDir(path))
|
if (auto const path = tr_pathbuf{ dir, "/public_html"sv }; isWebClientDir(path))
|
||||||
{
|
{
|
||||||
return std::string{ path };
|
return std::string{ path };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user