Hello,
The special education teachers in our schools have asked us to install a LibreOffice extension (Le cartable fantastique in .oxt format - https://www.cartablefantastique.fr/outi ... re-office/) on their classroom PCs for multi-user access.
I found a package for a similar extension in the Wapt store: https://wapt.tranquil.it/store/fr/detai ... _PROD.wapt
Do you think it would be possible to easily adapt this package? Has anyone done this before?
Thank you in advance for your feedback.
Brice (IT Director - Grand Besançon Métropole)
[RESOLVED] Package for deploying a LibreOffice extension
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Good morning,
Yes, you just need the .oxt file and to run this command, adapting it to your environment:
Yes, you just need the .oxt file and to run this command, adapting it to your environment:
Code: Select all
unopkg.exe add --shared chemin_makepath\Extension.oxtThank you for your reply.
Upon analyzing the details of the existing package that I wish to adapt, I think there are other elements to modify besides simply adding the command: "unopkg.exe add --shared chemin_makepath\Extension.oxt"?
I can skip the audit and uninstall.
Could you provide me with more details?
Thanks in advance.
- - - - - - -
Upon analyzing the details of the existing package that I wish to adapt, I think there are other elements to modify besides simply adding the command: "unopkg.exe add --shared chemin_makepath\Extension.oxt"?
I can skip the audit and uninstall.
Could you provide me with more details?
Thanks in advance.
- - - - - - -
Code: Select all
# -*- coding: utf-8 -*-
from setuphelpers import *
def get_unopkg_path():
unopkg_path = makepath(programfiles, "LibreOffice", "program", "unopkg.com")
if not isfile(unopkg_path):
unopkg_path = makepath(programfiles, "Collabora Office", "program", "unopkg.com")
if not isfile(unopkg_path):
error("ERROR: Couldn't find path to unopkg.com, verify your LibreOffice installation")
return unopkg_path
def install():
if params.get("install_with_luti", False):
WAPT.install("tis-libreoffice-still")
extension_name = glob.glob(f"Grammalecte-fr-v{control.get_software_version()}.oxt")[0]
install_path = get_unopkg_path().split("\\")[:-1]
install_path = "\\".join(install_path)
# run(f'"{get_unopkg_path()}" --help') for further information
print(f"Install path : {install_path}")
run(f'"{get_unopkg_path()}" add --shared "{extension_name}"')
def audit():
extension_name = f"Grammalecte-fr-v{control.get_software_version()}.oxt"
result = run(f'"{get_unopkg_path()}" list --shared "{extension_name}"')
if extension_name in result:
return "OK"
else:
return "ERROR"
def uninstall():
extension_name = f"Grammalecte-fr-v{control.get_software_version()}.oxt"
run(f'"{get_unopkg_path()}" remove --shared "{extension_name}"')Thank you, I understood that your command did not include auditing and uninstalling the LibreOffice extension.
How can I upload the .oxt file? And to which server?
From the WAPT console, the standard package model only allows importing .EXE and .MSI files.
Thank you in advance for any clarification.
How can I upload the .oxt file? And to which server?
From the WAPT console, the standard package model only allows importing .EXE and .MSI files.
Thank you in advance for any clarification.
Hello,
if I understand correctly what you want to do, you need to include the .oxt file in the package. By default, packages under development are stored in c:\waptdev. You need to place the .oxt file at the same level as the package's setup.py file.
Have a good day,
Bertrand
if I understand correctly what you want to do, you need to include the .oxt file in the package. By default, packages under development are stored in c:\waptdev. You need to place the .oxt file at the same level as the package's setup.py file.
Have a good day,
Bertrand
Good morning,
With LibreOffice version 25.2.6 (or even an earlier version?), the command
It doesn't seem to be working anymore!
The same applies to:
Does anyone have a solution for installing an extension under LibreOffice 25.2.6 on Windows 10/11?
With LibreOffice version 25.2.6 (or even an earlier version?), the command
Code: Select all
unopkg.exe add --shared chemin_makepath\Extension.oxtThe same applies to:
Code: Select all
"C:\Program Files\LibreOffice\program\unopkg.exe" add --shared "chemin_makepath\Extension.oxt" WAPT Enterprise 2.6.1.17765
WAPT server under Debian 13
Administration/package creation under Windows 11/10
WAPT server under Debian 13
Administration/package creation under Windows 11/10
- dcardon
- WAPT Expert
- Messages: 1929
- Registration: June 18, 2014 - 09:58
- Location: Saint Sébastien sur Loire
- Contact :
Hi Brice,
could you please start a new thread since this is a new problem with a new version of LibreOffice? It will make it easier to track. I'll mark this thread as resolved (in relation to the initial question
).
Thanks,
Denis
could you please start a new thread since this is a new problem with a new version of LibreOffice? It will make it easier to track. I'll mark this thread as resolved (in relation to the initial question
Thanks,
Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
