[Libreoffice-bugs] [Bug 100307] Problem installing libreoffice extension as shared
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sun Sep 10 14:10:51 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=100307
--- Comment #5 from rolfofsaxony at gmail.com ---
Finally found a reference to what I assume is the same issue
https://bz.apache.org/ooo/show_bug.cgi?id=102542
"The current URI specification for running a non-Basic script (JavaScript,
BeanShell,
Java, Python) is :
vnd.sun.star.script:MACROREF?language=Language&location=[user|share|document]
The consequence is that an extension containing a non-Basic script will contain
URI's
where the running level is fixed : either <user> or <shell>. These URI's are
hard-
written for example in the AddonUI.xcu file, or in the event tab of a dialog
control.
So if the extension designer wants its extension to be installed in user or
shared
levels, he/she must provide and maintain two variants of the same extension.
"
I assumed that I could add both URI's in Addons.xcu (for example like so)
<prop oor:name="URL" oor:type="xs:string">
<value>vnd.sun.star.script:bookmarktoggle.oxt|bookmarktoggle|bookmarktoggle.py$BookmarkToggle?language=Python&location=user:uno_packages</value>
<value>vnd.sun.star.script:bookmarktoggle.oxt|bookmarktoggle|bookmarktoggle.py$BookmarkToggle?language=Python&location=share:uno_packages</value>
</prop>
and depending on whether the extension was loaded as "user" or "all-users" the
appropriate URI would be used. That does not appear to be the case.
The bug https://bz.apache.org/ooo/show_bug.cgi?id=102542 seems to describe
exactly the issue that I am having.
I trust this clears up any doubts you have. Indeed given this information you
may be able to come straight back with an answer, if this issue is now fixed in
LibreOffice.
Regards
Rolf
--
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/20170910/b2283da0/attachment.html>
More information about the Libreoffice-bugs
mailing list