diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2017-12-13 15:09:36 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-03-19 19:02:21 +0100 |
commit | f4c9b387b697aca3c1e600fcd1fddf188d691a29 (patch) | |
tree | 830134d36287e549908401f6b487b93f18649b15 /shell | |
parent | a3b1500439ebc9986a57457254cdeaddbf458832 (diff) |
LOK: fix URL launching, so that Help buttons work.
Change-Id: I9efe0173c35341043c3402042d9aa364a03e4fc5
Reviewed-on: https://gerrit.libreoffice.org/46419
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 2ccf578372cd77060abb6db520985165e779de3f)
(cherry picked from commit 7978eb8f6efa64fb0d5fba993f029793672a78ba)
Diffstat (limited to 'shell')
-rw-r--r-- | shell/Library_syssh.mk | 1 | ||||
-rw-r--r-- | shell/source/unix/exec/shellexec.cxx | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/shell/Library_syssh.mk b/shell/Library_syssh.mk index c36056a9536b..cd64791f1cd5 100644 --- a/shell/Library_syssh.mk +++ b/shell/Library_syssh.mk @@ -14,6 +14,7 @@ $(eval $(call gb_Library_use_sdk_api,syssh)) $(eval $(call gb_Library_use_libraries,syssh,\ cppu \ cppuhelper \ + comphelper \ sal \ )) diff --git a/shell/source/unix/exec/shellexec.cxx b/shell/source/unix/exec/shellexec.cxx index 3411f2c446fe..fd9932353e0c 100644 --- a/shell/source/unix/exec/shellexec.cxx +++ b/shell/source/unix/exec/shellexec.cxx @@ -34,6 +34,7 @@ #include <com/sun/star/uri/ExternalUriReferenceTranslator.hpp> #include <com/sun/star/uri/UriReferenceFactory.hpp> #include <cppuhelper/supportsservice.hxx> +#include <comphelper/lok.hxx> #include <uno/current_context.hxx> @@ -97,6 +98,12 @@ void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aPar { OStringBuffer aBuffer, aLaunchBuffer; + if (comphelper::LibreOfficeKit::isActive()) + { + SAL_WARN("shell", "Unusual - shell attemp to launch " << aCommand << " with params " << aParameter << " under lok"); + return; + } + // DESKTOP_LAUNCH, see http://freedesktop.org/pipermail/xdg/2004-August/004489.html static const char *pDesktopLaunch = getenv( "DESKTOP_LAUNCH" ); |