diff options
author | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2022-11-23 14:55:19 +0100 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2022-11-23 19:25:02 +0100 |
commit | e5d9db623882c7a9d88d40d5bf2bce0dbdb11365 (patch) | |
tree | e7e0b17e248e181ec3bed4fabb8cd03759050824 /sfx2 | |
parent | 55b1d635350cb76ee3e19e90c938eedd38ac3342 (diff) |
tdf#152172 fix help workaround re Safari as default browser on Ventura
the "Rapid Security Response" feature added with macOS 13 (Ventura)
makes Safari a stub in a different location. Instead of the traditional
/Application/Safari.app/ the call to query the default app will return
/System/Volumes/Preboot/Cryptexes/App/System/Applications/Safari.app/
So instead of a full match, just check for the suffix.
Change-Id: Ic4abfe33c118827bc0e089e9966e57a0fd8c0526
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143178
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/sfxhelp.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx index d4c9bc7f5a6f..fe6350aa6f57 100644 --- a/sfx2/source/appl/sfxhelp.cxx +++ b/sfx2/source/appl/sfxhelp.cxx @@ -1122,7 +1122,7 @@ bool SfxHelp::Start_Impl(const OUString& rURL, const vcl::Window* pWindow) static_cast<CFStringRef>(@"https://www.libreoffice.org"), nullptr), kLSRolesAll, nullptr); - if([static_cast<NSString*>(CFURLGetString(pBrowser)) isEqualToString:@"file:///Applications/Safari.app/"]) { + if([static_cast<NSString*>(CFURLGetString(pBrowser)) hasSuffix:@"/Applications/Safari.app/"]) { impl_showOnlineHelp(aHelpURL, pWeldWindow); return true; } |