[Libreoffice-bugs] [Bug 128556] New: PyUno getCurrentComponent return None when loading a Keynote presentation in headless mode
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sat Nov 2 18:08:54 UTC 2019
https://bugs.documentfoundation.org/show_bug.cgi?id=128556
Bug ID: 128556
Summary: PyUno getCurrentComponent return None when loading a
Keynote presentation in headless mode
Product: LibreOffice
Version: 6.3.2.2 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Impress
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: pablo.platt at gmail.com
Description:
When loading a Keynote presentation in headless mode it's not possible to
access it with internal PyUno script.
Keynote in non-headless mode works fine.
ODP in headless mode works fine.
Steps to Reproduce:
1. create test.py internal python script with a function that get the current
component and print it to the console.
Script location under Ubuntu:
/usr/lib/libreoffice/share/Scripts/python/test.py
test.py script content:
def test():
desktop = XSCRIPTCONTEXT.getDesktop()
cmp = desktop.getCurrentComponent()
print(cmp)
2. Execute the script with a Keynote presentation:
libreoffice --headless
'vnd.sun.star.script:test.py$test?language=Python&location=share' test.key
3. None is printed to the console instead of the component object.
4. Test without headless mode:
libreoffice 'vnd.sun.star.script:test.py$test?language=Python&location=share'
test.key
5. Verify the component object is printed to the console.
6. Execute the script with ODP presentation:
libreoffice --headless
'vnd.sun.star.script:test.py$test?language=Python&location=share' test.odp
7. Verify the component object is printed to the console.
Actual Results:
None is printed to the console. We can't access the Current Component.
Expected Results:
We should be able to access the Current Component and print it to the console.
Reproducible: Always
User Profile Reset: No
Additional Info:
Version: 6.3.2.2
Build ID: 1:6.3.2-0ubuntu0.18.04.1~lo1
CPU threads: 1; OS: Linux 5.0; UI render: default; VCL: gtk3;
Locale: en-US (en_IL); UI-Language: en-US
Calc: threaded
--
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/20191102/879ea698/attachment.html>
More information about the Libreoffice-bugs
mailing list