diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-06-06 17:05:25 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-06-06 18:09:40 +0200 |
commit | c4f58395bd1f36a3ff4e2dd514907c74c86112b5 (patch) | |
tree | f838e31ecf0f6dbc5d71d952a93264620d4fc2b9 /vcl | |
parent | 80330c72ec3880ac56d88167a071ff244403f134 (diff) |
simplify WM_COMMAND
it's not necessary to prepend /bin/sh to WM_COMMAND, soffice itself
already is executable
Change-Id: Iece77f901f233c8c675f524c8c88510d0cfc1c52
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/generic/app/saldisp.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx index 90935aacfc19..75b2d2e1e8ef 100644 --- a/vcl/unx/generic/app/saldisp.cxx +++ b/vcl/unx/generic/app/saldisp.cxx @@ -494,10 +494,9 @@ SalDisplay::initScreen( SalX11Screen nXScreen ) const ); OString aExec(OUStringToOString(SessionManagerClient::getExecName(), osl_getThreadTextEncoding())); - const char* argv[2]; - argv[0] = "/bin/sh"; - argv[1] = aExec.getStr(); - XSetCommand( pDisp_, pSD->m_aRefWindow, const_cast<char**>(argv), 2 ); + const char* argv[1]; + argv[0] = aExec.getStr(); + XSetCommand( pDisp_, pSD->m_aRefWindow, const_cast<char**>(argv), 1 ); XSelectInput( pDisp_, pSD->m_aRefWindow, PropertyChangeMask ); // - - - - - - - - - - GCs - - - - - - - - - - - - - - - - - |