diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/source/unix/exec/shellexec.cxx | 15 | ||||
-rw-r--r-- | shell/source/unix/exec/shellexec.hxx | 1 |
2 files changed, 0 insertions, 16 deletions
diff --git a/shell/source/unix/exec/shellexec.cxx b/shell/source/unix/exec/shellexec.cxx index d12b5778ba3d..34861674de96 100644 --- a/shell/source/unix/exec/shellexec.cxx +++ b/shell/source/unix/exec/shellexec.cxx @@ -77,21 +77,6 @@ ShellExec::ShellExec( const Reference< XComponentContext >& xContext ) : WeakImplHelper< XSystemShellExecute, XServiceInfo >(), m_xContext(xContext) { - try { - Reference< XCurrentContext > xCurrentContext(getCurrentContext()); - - if (xCurrentContext.is()) - { - Any aValue = xCurrentContext->getValueByName( "system.desktop-environment" ); - - OUString aDesktopEnvironment; - if (aValue >>= aDesktopEnvironment) - { - m_aDesktopEnvironment = OUStringToOString(aDesktopEnvironment, RTL_TEXTENCODING_ASCII_US); - } - } - } catch (const RuntimeException &) { - } } void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aParameter, sal_Int32 nFlags ) diff --git a/shell/source/unix/exec/shellexec.hxx b/shell/source/unix/exec/shellexec.hxx index 38ebf8ea94c0..22b03ad76d3d 100644 --- a/shell/source/unix/exec/shellexec.hxx +++ b/shell/source/unix/exec/shellexec.hxx @@ -32,7 +32,6 @@ class ShellExec : public ::cppu::WeakImplHelper< css::system::XSystemShellExecute, css::lang::XServiceInfo > { - OString m_aDesktopEnvironment; css::uno::Reference< css::uno::XComponentContext > m_xContext; public: |