[Libreoffice-bugs] [Bug 100307] Problem installing libreoffice extension as shared
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sat Sep 23 15:04:46 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=100307
--- Comment #6 from rolfofsaxony at gmail.com ---
I have investigated further and the issue seems to arise around the
getPackageName2PathMap function in pythonscript.py
Once the extension is installed for "All Users" it gets stored in
/var/spool/libreoffice/uno_packages/cache/uno_packages under a *.tmp_
directory.
Sudo'ing into lowriter once can see that this is recognised and loaded.
Starting lowriter as a normal user, no initial attempt is made to load
extensions in /var/spool/libreoffice/uno_packages/cache/uno_packages.
However if you attempt to activate the extension, an attempt is made but
returns 0 (Zero) extensions.
Below is the Debug listing from lowriter first running as sudo and secondly as
a normal user.
sudo lowriter
(soffice:6281): Gdk-WARNING **: gdk_window_set_icon_list: icons too large
(soffice:6281): Gdk-WARNING **: gdk_window_set_icon_list: icons too large
Sat Sep 23 14:42:35 2017 [DEBUG] pythonscript loading
Sat Sep 23 14:42:35 2017 [DEBUG] pythonscript finished intializing
Sat Sep 23 14:42:35 2017 [DEBUG] Entering
PythonScriptProvider.ctorshare:uno_packages
Sat Sep 23 14:42:35 2017 [DEBUG] initialized urihelper with
baseUri=file:///var/spool/libreoffice/uno_packages/cache/uno_packages,m_scriptUriLocation=share:uno_packages
Sat Sep 23 14:42:35 2017 [DEBUG] got urlHelper <pythonscript.MyUriHelper object
at 0x7fcc01b895f8>
Sat Sep 23 14:42:35 2017 [DEBUG] share:uno_packages transformed to
file:///var/spool/libreoffice/uno_packages/cache/uno_packages
Sat Sep 23 14:42:35 2017 [DEBUG] pythonscript: getPackageName2PathMap start
getDeployedPackages
Sat Sep 23 14:42:35 2017 [DEBUG] pythonscript: getPackageName2PathMap end
getDeployedPackages (1)
Sat Sep 23 14:42:35 2017 [DEBUG] inspecting package
bookmarktoggle.oxt(bookmarktoggle)
Sat Sep 23 14:42:35 2017 [ERROR] adding Package lu5912xamblb.tmp_
('file:///var/spool/libreoffice/uno_packages/cache/uno_packages/lu5912xamblb.tmp_/bookmarktoggle.oxt/bookmarktoggle',)
Sat Sep 23 14:42:35 2017 [DEBUG] hasByName called
vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages/lu5912xamblb.tmp_/bookmarktoggle.oxt/bookmarktoggle
Sat Sep 23 14:42:35 2017 [DEBUG] hasByName
file:///var/spool/libreoffice/uno_packages/cache/uno_packages/lu5912xamblb.tmp_/bookmarktoggle.oxt/bookmarktoggle
True
Sat Sep 23 14:42:35 2017 [DEBUG] hasByName called
vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages/lu5912xamblb.tmp_/bookmarktoggle.oxt/bookmarktoggle
Sat Sep 23 14:42:35 2017 [DEBUG] hasByName
file:///var/spool/libreoffice/uno_packages/cache/uno_packages/lu5912xamblb.tmp_/bookmarktoggle.oxt/bookmarktoggle
True
Sat Sep 23 14:42:35 2017 [DEBUG] hasByName called
vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages/lu5912xamblb.tmp_/bookmarktoggle.oxt/bookmarktoggle
Sat Sep 23 14:42:35 2017 [DEBUG] hasByName
file:///var/spool/libreoffice/uno_packages/cache/uno_packages/lu5912xamblb.tmp_/bookmarktoggle.oxt/bookmarktoggle
True
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
lowriter
(soffice:6499): Gdk-WARNING **: gdk_window_set_icon_list: icons too large
(soffice:6499): Gdk-WARNING **: gdk_window_set_icon_list: icons too large
#
#The following only happens after attempting to invoke the extension
#whilst when running as sudo pythonscript is invoked upon startup of lowriter
#for whatever reason the number of "deployedpackages" is returned as Zero, when
#quite clearly, there is a package installed in
/var/spool/libreoffice/uno_packages/cache/uno_packages
#
pythonloader.Loader ctor
pythonloader.Loader.activate
pythonloader: interpreting url vnd.openoffice.pymodule:pythonscript
pythonloader: after expansion vnd.openoffice.pymodule:pythonscript
Sat Sep 23 14:46:44 2017 [DEBUG] pythonscript loading
Sat Sep 23 14:46:44 2017 [DEBUG] pythonscript finished intializing
Fetched ImplHelper as <unohelper.ImplementationHelper object at 0x7fb3fb7e9630>
Sat Sep 23 14:46:44 2017 [DEBUG] Entering
PythonScriptProvider.ctorshare:uno_packages
Sat Sep 23 14:46:44 2017 [DEBUG] initialized urihelper with
baseUri=file:///var/spool/libreoffice/uno_packages/cache/uno_packages,m_scriptUriLocation=share:uno_packages
Sat Sep 23 14:46:44 2017 [DEBUG] got urlHelper <pythonscript.MyUriHelper object
at 0x7fb3fb7e9828>
Sat Sep 23 14:46:44 2017 [DEBUG] share:uno_packages transformed to
file:///var/spool/libreoffice/uno_packages/cache/uno_packages
Sat Sep 23 14:46:44 2017 [DEBUG] pythonscript: getPackageName2PathMap start
getDeployedPackages
Sat Sep 23 14:46:44 2017 [DEBUG] pythonscript: getPackageName2PathMap end
getDeployedPackages (0)
Sat Sep 23 14:46:44 2017 [DEBUG] getScript
vnd.sun.star.script:bookmarktoggle.oxt|bookmarktoggle|bookmarktoggle.py$BookmarkToggle?language=Python&location=share:uno_packages
invoked
Sat Sep 23 14:46:44 2017 [DEBUG] converting
scriptURI=vnd.sun.star.script:bookmarktoggle.oxt|bookmarktoggle|bookmarktoggle.py$BookmarkToggle?language=Python&location=share:uno_packages
to
storageURI=file:///var/spool/libreoffice/uno_packages/cache/uno_packages/bookmarktoggle.oxt/bookmarktoggle/bookmarktoggle.py$BookmarkToggle
Sat Sep 23 14:46:44 2017 [ERROR] <class 'KeyError'>: 'bookmarktoggle.oxt'
/usr/lib/libreoffice/program/pythonscript.py:380 in function
getStorageUrlFromPersistentUrl() [package = self.mapPackageName2Path[
packageName ]]
/usr/lib/libreoffice/program/pythonscript.py:988 in function getScript()
[self.provCtx.uriHelper.getStorageURI(scriptUri) );]
(soffice:6499): Gdk-WARNING **: gdk_window_set_icon_list: icons too large
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
You will note that the normal user debug listing is looking for
file:///var/spool/libreoffice/uno_packages/cache/uno_packages/bookmarktoggle.oxt/bookmarktoggle/bookmarktoggle.py$BookmarkToggle
rather than
file:///var/spool/libreoffice/uno_packages/cache/uno_packages/lu5912xamblb.tmp_/bookmarktoggle.oxt/bookmarktoggle
if you need more information let me know.
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/20170923/fb67db43/attachment.html>
More information about the Libreoffice-bugs
mailing list