Use Poco to convert from pathname to URI
(Yesterday I talked about GLib in a commit message, I meant Poco of course, for this source file. It's gtk/mobile.cpp that uses GTK+.)
This commit is contained in:
parent
5167cf9f58
commit
f7ebab8902
1 changed files with 2 additions and 1 deletions
|
@ -2454,7 +2454,8 @@ void lokit_main(
|
|||
#else // MOBILEAPP
|
||||
|
||||
#ifdef __linux
|
||||
LibreOfficeKit *kit = lok_init_2(LO_PATH "/program", "file://" LO_PATH);
|
||||
Poco::URI userInstallationURI("file", LO_PATH);
|
||||
LibreOfficeKit *kit = lok_init_2(LO_PATH "/program", userInstallationURI.toString().c_str());
|
||||
#else
|
||||
LibreOfficeKit *kit = lok_init_2(nullptr, nullptr);
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue