From d42d3c057f0daacea92aed9fa97263bdc8b38841 Mon Sep 17 00:00:00 2001 From: alex-z Date: Tue, 19 Jul 2022 13:05:20 +0300 Subject: [PATCH] Implement URI handler for local file editing Signed-off-by: alex-z --- NEXTCLOUD.cmake | 1 + admin/win/msi/Nextcloud.wxs | 14 ++++ admin/win/msi/OEM.wxi.in | 2 + cmake/modules/MacOSXBundleInfo.plist.in | 11 +++ config.h.in | 1 + doc/architecture.rst | 20 ++++++ mirall.desktop.in | 4 +- .../qtsingleapplication.cpp | 11 --- .../qtsingleapplication/qtsingleapplication.h | 1 - src/common/utility.h | 5 ++ src/common/utility_mac.cpp | 2 + src/common/utility_unix.cpp | 23 +++++++ src/common/utility_win.cpp | 2 + src/gui/application.cpp | 67 ++++++++++++++++--- src/gui/application.h | 8 ++- src/gui/cocoainitializer_mac.mm | 61 +++++++++++++++-- src/gui/folderman.cpp | 62 +++++++++++++++++ src/gui/folderman.h | 3 + 18 files changed, 269 insertions(+), 29 deletions(-) diff --git a/NEXTCLOUD.cmake b/NEXTCLOUD.cmake index a28ef387e..d43553f28 100644 --- a/NEXTCLOUD.cmake +++ b/NEXTCLOUD.cmake @@ -5,6 +5,7 @@ set( APPLICATION_DOMAIN "nextcloud.com" ) set( APPLICATION_VENDOR "Nextcloud GmbH" ) set( APPLICATION_UPDATE_URL "https://updates.nextcloud.org/client/" CACHE STRING "URL for updater" ) set( APPLICATION_HELP_URL "" CACHE STRING "URL for the help menu" ) +set( APPLICATION_URI_HANDLER_SCHEME "nc") if(APPLE AND APPLICATION_NAME STREQUAL "Nextcloud" AND EXISTS "${CMAKE_SOURCE_DIR}/theme/colored/Nextcloud-macOS-icon.svg") set( APPLICATION_ICON_NAME "Nextcloud-macOS" ) diff --git a/admin/win/msi/Nextcloud.wxs b/admin/win/msi/Nextcloud.wxs index 8e694b3f6..05b1ba595 100644 --- a/admin/win/msi/Nextcloud.wxs +++ b/admin/win/msi/Nextcloud.wxs @@ -190,6 +190,19 @@ + + + + + + + + + + + + + @@ -200,6 +213,7 @@ + diff --git a/admin/win/msi/OEM.wxi.in b/admin/win/msi/OEM.wxi.in index 4d3eafcf9..e35451eef 100644 --- a/admin/win/msi/OEM.wxi.in +++ b/admin/win/msi/OEM.wxi.in @@ -28,6 +28,8 @@ + +