diff options
author | DeepBlueV7.X <nicolas.werner@hotmail.de> | 2024-01-28 00:19:05 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-28 00:19:05 +0000 |
commit | 15a3a2731db52862fefe8cb8ac35d92538d1a3b6 (patch) | |
tree | d1af6f8001ea57d9dc515b512b70859329ede49a | |
parent | Disable optimistic pagination to fetch events edited into the thread before t... (diff) | |
parent | Change URL to URI (diff) | |
download | nheko-15a3a2731db52862fefe8cb8ac35d92538d1a3b6.tar.xz |
Merge pull request #1671 from Nheko-Reborn/macos_matrix_urls
Add Matrix URL handling support to MacOS
-rw-r--r-- | CMakeLists.txt | 5 | ||||
-rw-r--r-- | cmake/MacOSXBundleInfo.plist.in | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 201e51aa..fc04e3a0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -676,6 +676,11 @@ if(WIN32) else() qt_add_executable(nheko ${OS_BUNDLE} ${NHEKO_DEPS}) + if(APPLE) + set_target_properties(nheko PROPERTIES MACOSX_BUNDLE_INFO_PLIST + "${CMAKE_CURRENT_SOURCE_DIR}/cmake/MacOSXBundleInfo.plist.in") + endif() + if(HAVE_BACKTRACE_SYMBOLS_FD AND NOT CMAKE_BUILD_TYPE STREQUAL "Release") set_target_properties(nheko PROPERTIES ENABLE_EXPORTS ON) endif() diff --git a/cmake/MacOSXBundleInfo.plist.in b/cmake/MacOSXBundleInfo.plist.in index b95de173..01977550 100644 --- a/cmake/MacOSXBundleInfo.plist.in +++ b/cmake/MacOSXBundleInfo.plist.in @@ -34,5 +34,18 @@ <string>NSApplication</string> <key>NSHighResolutionCapable</key> <true/> + <key>CFBundleURLTypes</key> + <array> + <dict> + <key>CFBundleURLName</key> + <string>Matrix URI</string> + <key>CFBundleURLSchemes</key> + <array> + <string>matrix</string> + </array> + </dict> + </array> + <key>NSSupportsAutomaticGraphicsSwitching</key> + <true/> </dict> </plist> |