[Libreoffice-bugs] [Bug 100307] Problem installing libreoffice extension as shared
https://bugs.documentfoundation.org/show_bug.cgi?id=100307 Xisco FaulĂchanged: What|Removed |Added Status|REOPENED|UNCONFIRMED CC||xiscofa...@libreoffice.org Ever confirmed|1 |0 --- Comment #9 from Xisco FaulĂ --- You can't confirm your own bugs. Moving it back to UNCONFIRMED until someone else confirms it. -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 100307] Problem installing libreoffice extension as shared
https://bugs.documentfoundation.org/show_bug.cgi?id=100307 rolfofsax...@gmail.com changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|WORKSFORME |--- Ever confirmed|0 |1 --- Comment #8 from rolfofsax...@gmail.com --- (In reply to Justin L from comment #7) > I do this all the time, but yes - you can't run LibreOffice as sudo, > otherwise the users files are owned as root. Here is the bash code that I > use to install shared extensions as part of my machine rollout: > > # > - > - > # Set LibreOffice defaults with extension > # > - > - > if [ -z "$(pgrep soffice)" ]; then > LO_EXTENSION=LanguageTool-3.5.oxt > if [ -e ${LO_EXTENSION} ]; then > echo Adding ${LO_EXTENSION} extension > unopkg add --shared${LO_EXTENSION} > else > echo " ... unable to find ${LO_EXTENSION}" > fi > else > echo " ... LibreOffice is running, so skipping adding any extensions" > fi > > Marking as works for me. I've been doing this since 4.x, and most recently > on 5.4.2. See the help file for how to install shared extensions at > https://help.libreoffice.org/Common/Extension_Manager This bug report is specifically about python extensions and as far as I know LanguageTool is not written in python. The command that you have provided, may well work with Basic or Java extensions but it fails with python. Installing as superuser, installs ONLY for superuser even if the install for all users option is selected. Installing using sudo and selecting install for all users, shows the extension for all users but than fails miserably, when asked to activate, being that it cannot find the path of the extension. I have even tried creating another version specifically for multiuser installation, where the Addons.xcu file contains location=share:uno_packages rather than the usual location=user:uno_packages entry but that fails too. -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 100307] Problem installing libreoffice extension as shared
https://bugs.documentfoundation.org/show_bug.cgi?id=100307 Justin Lchanged: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |WORKSFORME --- Comment #7 from Justin L --- I do this all the time, but yes - you can't run LibreOffice as sudo, otherwise the users files are owned as root. Here is the bash code that I use to install shared extensions as part of my machine rollout: # -- # Set LibreOffice defaults with extension # -- if [ -z "$(pgrep soffice)" ]; then LO_EXTENSION=LanguageTool-3.5.oxt if [ -e ${LO_EXTENSION} ]; then echo Adding ${LO_EXTENSION} extension unopkg add --shared${LO_EXTENSION} else echo " ... unable to find ${LO_EXTENSION}" fi else echo " ... LibreOffice is running, so skipping adding any extensions" fi Marking as works for me. I've been doing this since 4.x, and most recently on 5.4.2. See the help file for how to install shared extensions at https://help.libreoffice.org/Common/Extension_Manager -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 100307] Problem installing libreoffice extension as shared
https://bugs.documentfoundation.org/show_bug.cgi?id=100307 --- Comment #6 from rolfofsax...@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 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 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 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=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=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] :
[Libreoffice-bugs] [Bug 100307] Problem installing libreoffice extension as shared
https://bugs.documentfoundation.org/show_bug.cgi?id=100307 Jean-Baptiste Faurechanged: What|Removed |Added Status|NEEDINFO|UNCONFIRMED Ever confirmed|1 |0 -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 100307] Problem installing libreoffice extension as shared
https://bugs.documentfoundation.org/show_bug.cgi?id=100307 --- Comment #5 from rolfofsax...@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=[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 or . 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) vnd.sun.star.script:bookmarktoggle.oxt|bookmarktoggle|bookmarktoggle.py$BookmarkToggle?language=Pythonlocation=user:uno_packages vnd.sun.star.script:bookmarktoggle.oxt|bookmarktoggle|bookmarktoggle.py$BookmarkToggle?language=Pythonlocation=share:uno_packages 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.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 100307] Problem installing libreoffice extension as shared
https://bugs.documentfoundation.org/show_bug.cgi?id=100307 Jean-Baptiste Faurechanged: What|Removed |Added Status|UNCONFIRMED |NEEDINFO CC||jbfa...@libreoffice.org Ever confirmed|0 |1 --- Comment #4 from Jean-Baptiste Faure --- Hi, (In reply to rolfofsaxony from comment #0) > [...] > Installing an oxt extension as shared, registers and works for the superuser > but not for other users. Why do you think it is a bug ? Set status to NEEDINFO, please set it back to UNCONFIRMED once requested informations are provided. Best regards. JBF -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 100307] Problem installing libreoffice extension as shared
https://bugs.documentfoundation.org/show_bug.cgi?id=100307 --- Comment #3 from rolfofsax...@gmail.com --- (In reply to Cor Nouws from comment #2) > Hi, > > (In reply to rolfofsaxony from comment #0) > > Installing an oxt extension as shared, registers and works for the superuser > > but not for other users. > > How did you do the installation? it's been nearly a month, so I don't recall on that specific occasion. However, running through it again this afternoon I got the following: sudo su lowriter use extension manager add extension all users start lowriter as a user package is registered and menu items visible click a function and get the following error: A Scripting Framework error occurred while running the Python script vnd.sun.star.script:footswitch.oxt|footswitch|footswitch.py$EditConfigurationFile?language=Python=user:uno_packages. Message: : 'footswitch.oxt' /usr/lib/libreoffice/program/pythonscript.py:379 in function getStorageUrlFromPersistentUrl() [package = self.mapPackageName2Path[ packageName ]] /usr/lib/libreoffice/program/pythonscript.py:987 in function getScript() [self.provCtx.uriHelper.getStorageURI(scriptUri) );] files: /var/spool/libreoffice/uno_packages/cache/uno_packages/lu4412jaclz4.tmp_/ drwxr-xr-x 7 root root 4096 Aug 6 16:38 footswitch.oxt -rw-r--r-- 1 root root0 Aug 6 16:38 footswitch.oxtproperties In the footswitch.oxt directory: -rw-r--r-- 1 root root 1216 Aug 6 16:38 51-footswitch.rules -rw-r--r-- 1 root root105 Aug 6 16:38 51-microdialo.hwdb -rw-r--r-- 1 root root109 Aug 6 16:38 51-microdialov220.hwdb -rw-r--r-- 1 root root 5076 Aug 6 16:38 Accelerators.xcu -rw-r--r-- 1 root root 7554 Aug 6 16:38 Addons.xcu -rw-r--r-- 1 root root 1413 Aug 6 16:38 description.xml drwxr-xr-x 2 root root 4096 Aug 6 16:38 footswitch -rw-r--r-- 1 root root326 Aug 6 16:38 footswitch.ini -rw-r--r-- 1 root root 599560 Aug 6 16:38 footswitch.pdf drwxr-xr-x 2 root root 4096 Aug 6 16:38 icons -rw-r--r-- 1 root root 2792 Aug 6 16:38 messages_de.txt -rw-r--r-- 1 root root 2614 Aug 6 16:38 messages_en.txt -rw-r--r-- 1 root root 2855 Aug 6 16:38 messages_es.txt drwxr-xr-x 2 root root 4096 Aug 6 16:38 META-INF drwxr-xr-x 3 root root 4096 Aug 6 16:38 Office drwxr-xr-x 2 root root 4096 Aug 6 16:38 pkg-desc ~/.config/libreoffice/4/user/extensions/shared/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/lu4547jafah5.tmp $ drwxr-xr-x 2 rolf rolf 4096 Aug 6 16:40 . drwxr-xr-x 3 rolf rolf 4096 Aug 6 16:40 .. -rw-r--r-- 1 rolf rolf 8058 Aug 6 16:40 Addons.xcu I sent via email the extension, just in case the problem lies with it. -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 100307] Problem installing libreoffice extension as shared
https://bugs.documentfoundation.org/show_bug.cgi?id=100307 --- Comment #2 from Cor Nouws--- Hi, (In reply to rolfofsaxony from comment #0) > Installing an oxt extension as shared, registers and works for the superuser > but not for other users. How did you do the installation? -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 100307] Problem installing libreoffice extension as shared
https://bugs.documentfoundation.org/show_bug.cgi?id=100307 Buovjagachanged: What|Removed |Added Keywords||needAdvice -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 100307] Problem installing libreoffice extension as shared
https://bugs.documentfoundation.org/show_bug.cgi?id=100307 --- Comment #1 from rolfofsax...@gmail.com --- It turns out that AddOns.xcu and its parent directory were still owned by root so: ~/.config/libreoffice/4/user/extensions/shared/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/lu178289vkw8g.tmp was owned by root in group root as was the AddOns.xcu in that directory Given that you have to be superuser to install an extension as shared, I deem it an error that the local files are left as owned as root. -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs