Manually Remove Extension: writer2xhtml.oxt [solved]

7 replies [Last post]
Orion
Offline
Last seen: 41 weeks 2 days ago
Title:
Joined: 26 Dec 2014
Posts: 9
Hi, I’m trying to find a simple way to create ePub files from Writer, so I installed an extension called “writer2xhtml.oxt,” but (a) it doesn’t appear to provide that option, and (b) now it won’t uninstall. When I click “remove,” I get this:

(com.sun.star.lang.IllegalArgumentException) { { { Message = “Cannot detect media-type: file:///Applications/LibreOffice.app/Contents/MacOS/../share/uno_package..., Context = (com.sun.star.uno.XInterface) @9786858 } }, ArgumentPosition = (short) -1 }

So, on a Mac, how do I manually remove extensions?

– Orion

LibreOffice 4.4.3 / OS/X 10.9.5

oweng
oweng's picture
Offline
Last seen: 5 days 10 hours ago
Title: ==Moderator==
Joined: 26 Jan 2012
Posts: 3281
possible option
I am working from memory as I am not near an Apple computer at present. I believe the extensions are installed under /Applications/LibreOffice.app/Contents/MacOS/share/extensions/ it should be possible to browse to that location and manually delete the unwanted files. Note the instructions in this old post about backup up the extensions first, by creating an extensions.bak/ directory and copying all the existing contents of extensions/ to it (for later coping back if necessary). Also note that it should be possible to open the OXT installer using an archive manager (perhaps rename to ZIP first) to see where the files for that extension are installed.
Orion
Offline
Last seen: 41 weeks 2 days ago
Title:
Joined: 26 Dec 2014
Posts: 9
Hi. That path doesn’t appear
Hi. That path doesn’t appear to correspond to anything in my system. What I have is:

Library/Application Support/LibreOffice/4/User/Extensions

Inside that, I have lots of system files, but no .OXT files, and nothing labelled “writer2xhtml.” Am I just looking in the wrong place? I have revealed all the hidden directories (that I know of).

AttachmentSize
Extension_Directories.png 128.12 KB
– Orion

LibreOffice 4.4.3 / OS/X 10.9.5

oweng
oweng's picture
Offline
Last seen: 5 days 10 hours ago
Title: ==Moderator==
Joined: 26 Jan 2012
Posts: 3281
Application location?
Unless the location has changed under 10.9 all applications should be installed under Applications/. There should be a LibreOffice.app/ sub-directory in that location. The extension will have been installed into a sub-directory beneath this.
Orion
Offline
Last seen: 41 weeks 2 days ago
Title:
Joined: 26 Dec 2014
Posts: 9
I don’t have a directory
I don’t have a directory under “LibreOffice.app”, just that file. The Applications directory only contains the .app files themselves. Is there something hidden I can reveal?
– Orion

LibreOffice 4.4.3 / OS/X 10.9.5

oweng
oweng's picture
Offline
Last seen: 5 days 10 hours ago
Title: ==Moderator==
Joined: 26 Jan 2012
Posts: 3281
Right-click
Right-click on the LibreOffice.app/ directory (application package) and select Show Package Contents.
Orion
Offline
Last seen: 41 weeks 2 days ago
Title:
Joined: 26 Dec 2014
Posts: 9
I’ll be damned. I had no idea
I’ll be damned. I had no idea you could that. Thank you!

I decided to just use the nuclear option, though: full uninstall and reinstall. Most of my customization is in my templates anyway, so it’s not a huge loss. Thanks for your help!

– Orion

LibreOffice 4.4.3 / OS/X 10.9.5

amaloney
Offline
Last seen: 1 day 12 hours ago
Title: ★★★
Joined: 11 Oct 2010
Posts: 45
Manually Remove Extension
In Mac OS X the extensions are buried deeply in Application Support ~/Library/Application Support/LibreOffice/4/user/uno_packages/cache/uno_packages

Clicking on a folder there will show the contents of the folder which includes the extension (eg lu6gw7r.tmp_ -> pepitocleaner.oxt).

I have deleted that folder (eg lu6gw7r.tmp_) plus the accompanying file with the same name (eg lu6gw7r.tmp) to remove the extension.

NB This applies to extensions installed for the user.

For globally installed extensions, follow oweng’s right click instructions.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.