summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-04-20 15:44:18 +0200
committerAndras Timar <andras.timar@collabora.com>2021-04-27 21:52:16 +0200
commitf577d5df3f694ca0710caf35ac09e59f9041a2cc (patch)
tree822b9bcadf8f6d4727a251038c637682b38a1e1c
parenttdf#128538: Open filesystem directories in Finder after all (diff)
downloadcore-f577d5df3f694ca0710caf35ac09e59f9041a2cc.tar.gz
core-f577d5df3f694ca0710caf35ac09e59f9041a2cc.zip
Better handling of filelocs
Change-Id: Ic9c06cb476942ceb7d0166f22103e2e88cc9c21f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114339 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com> (cherry picked from commit 177dcfec4e833f83f1f11c7bdbfc6f1977ebcee7) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114355 Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--shell/source/unix/exec/shellexec.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/source/unix/exec/shellexec.cxx b/shell/source/unix/exec/shellexec.cxx
index 0810b0534112..093a8a2ba57f 100644
--- a/shell/source/unix/exec/shellexec.cxx
+++ b/shell/source/unix/exec/shellexec.cxx
@@ -151,6 +151,7 @@ void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aPar
throw css::lang::IllegalArgumentException(
"XSystemShellExecute.execute, cannot process <" + aCommand + ">", {}, 0);
} else if (pathname.endsWithIgnoreAsciiCase(".class")
+ || pathname.endsWithIgnoreAsciiCase(".fileloc")
|| pathname.endsWithIgnoreAsciiCase(".jar"))
{
dir = true;