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

--- Comment #4 from Jean-Pierre Ledure <[email protected]> ---
I could not reproduce the issue on

Version: 24.2.2.2 (X86_64) / LibreOffice Community
Build ID: d56cc158d8a96260b836f100ef4b4ef25d6f1a01
CPU threads: 6; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fr-BE (en_US.UTF-8); UI: en-US
Calc: threaded

Next code run as expected:

Sub OpenFile_hyou_jp
        GlobalScope.BasicLibraries.LoadLibrary("ScriptForge")
        Dim session As Variant
        session = CreateScriptService("Session")
       
session.RunApplication("/home/jean-pierre/Documents/ScriptForge/Bugs/Bug 161405
(RunCommand CJK)/่กจ.ods")
End Sub

The logic behind the scene is:
- check file existsnce otherwise abort
- run the Basic Shell statement (argument is in OS notation => no URL
conversion)
- above fails because Shell() does not associate files with applications =>
   - convert to URL notation
(file:///home/jean.../Bugs/Bug%20161405%20(RunCommand%20CJK)/%E8%A1%A8.ods)
   - run with the com.sun.star.system.SystemShellExecute service => OK

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to