[Libreoffice-bugs] [Bug 124776] Running soffice.exe with a relative path from Command Prompt doesn't work

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Apr 16 17:51:11 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=124776

--- Comment #3 from Tor Lillqvist <tml at iki.fi> ---
The code in osl_createCommandArgs_Impl() looks like it would be doing the right
thing, even uses CommandLineToArgvW( GetCommandLineW(), &nArgs ), and has the
comment /* Replace argv[0] with its absolute path */

But that gets used only if osl_setCommandArgs() is called with a zero argc. And
we apparently call osl_setCommandArgs() with whatever happens to be in the args
and argv passed to main(). I think we shold always ignore any argc and argv
passed to main() and just let that osl_createCommandArgs_Impl() do its job.

Or is there some detail I am missing?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190416/eb7becf7/attachment.html>


More information about the Libreoffice-bugs mailing list