Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2022-09-23 12:21:13 +0300
committerHannah von Reth <hannah.vonreth@owncloud.com>2022-09-23 16:02:06 +0300
commit849da0a724c38b42f8efe44a501c94c857b89e81 (patch)
tree9dfedd89b0915403381f4111f695142e783e36ff
parent065b7021f4cdedb940f6fb5d1cc9e1956171e7ec (diff)
Opt in to long path support to enable use of path > 260 as vfs rootwork/long_pah_vfs
https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry#enable-long-paths-in-windows-10-version-1607-and-later
-rw-r--r--changelog/unreleased/101366
-rw-r--r--src/gui/CMakeLists.txt5
-rw-r--r--src/gui/manifest-mingw.rc3
-rw-r--r--src/gui/owncloud.exe.manifest (renamed from src/gui/owncloud.exe.manifest-mingw)5
4 files changed, 12 insertions, 7 deletions
diff --git a/changelog/unreleased/10136 b/changelog/unreleased/10136
new file mode 100644
index 000000000..452350dbc
--- /dev/null
+++ b/changelog/unreleased/10136
@@ -0,0 +1,6 @@
+Enhancement: Windows add longPath awareness
+
+Requires Windows 10 newer than 1607 and the registry key to be enabled see:
+https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry#enable-long-paths-in-windows-10-version-1607-and-later
+
+https://github.com/owncloud/client/pull/10136
diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt
index 9426d5995..1c96cc173 100644
--- a/src/gui/CMakeLists.txt
+++ b/src/gui/CMakeLists.txt
@@ -199,10 +199,7 @@ if(NOT APPLE)
${CMAKE_CURRENT_SOURCE_DIR}/version.rc.in
${CMAKE_CURRENT_BINARY_DIR}/version.rc
@ONLY)
- target_sources(owncloud PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/version.rc)
- if(NOT MSVC)
- target_sources(owncloud PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/manifest-mingw.rc)
- endif()
+ target_sources(owncloud PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/version.rc ${CMAKE_CURRENT_SOURCE_DIR}/owncloud.exe.manifest)
else()
file(GLOB _icons "${OEM_THEME_DIR}/theme/colored/*-${APPLICATION_ICON_NAME}-icon.png")
foreach(_file ${_icons})
diff --git a/src/gui/manifest-mingw.rc b/src/gui/manifest-mingw.rc
deleted file mode 100644
index e3125c9d5..000000000
--- a/src/gui/manifest-mingw.rc
+++ /dev/null
@@ -1,3 +0,0 @@
-#include "winuser.h"
-
-CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "owncloud.exe.manifest-mingw"
diff --git a/src/gui/owncloud.exe.manifest-mingw b/src/gui/owncloud.exe.manifest
index ecea6f7f5..884855160 100644
--- a/src/gui/owncloud.exe.manifest-mingw
+++ b/src/gui/owncloud.exe.manifest
@@ -7,4 +7,9 @@
</requestedPrivileges>
</security>
</trustInfo>
+ <application xmlns="urn:schemas-microsoft-com:asm.v3">
+ <windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
+ <ws2:longPathAware>true</ws2:longPathAware>
+ </windowsSettings>
+ </application>
</assembly>