[SOLVED]Libreoffice opens sftp connection when opening odt

Everything about X, Gnome, KDE, ... and everything running on it

[SOLVED]Libreoffice opens sftp connection when opening odt

Postby akuankkis » 2018-01-14 09:32

Inside documet is Meta.xml file. In that file is something about that sftp mount.

Code: Select all
<meta:template xlink:type="simple" xlink:actuate="onRequest" xlink:title="Ankkalinna1" xlink:href="sftp://ankkala.dy.fi/home/aku/.config/libreoffice/4/user/template/Ankkalinna11.ott" meta:date="2015-02-05T18:10:50.400000000"/>

In that server is no Ankkalinna11.ott file but Libreoffice opens every time sftp connection and file opening is slow.
How to remove that xlink?
Last edited by akuankkis on 2018-01-14 14:56, edited 1 time in total.
akuankkis
 
Posts: 66
Joined: 2011-10-09 09:29

Re: Libreoffice opens sftp connection when opening odt file

Postby debiman » 2018-01-14 10:01

akuankkis wrote:How to remove that xlink?

have you tried editing the file with a plain text editor, just removing that bit?

btw, is that the situation on your machine? remote home directory? or did libreoffice mess that up somehow?
User avatar
debiman
 
Posts: 1762
Joined: 2013-03-12 07:18

Re: Libreoffice opens sftp connection when opening odt file

Postby akuankkis » 2018-01-14 10:18

debiman wrote:
akuankkis wrote:How to remove that xlink?

have you tried editing the file with a plain text editor, just removing that bit?

Yes.
I renamed oft to zip and unzipped it.
Next I edit that meta.xml with gedit, saved file and zipped directory.
Then I renamed zip to odt.
Libreoffice can't open it and says "General I/O error".

btw, is that the situation on your machine? remote home directory? or did libreoffice mess that up somehow?

Document is now in my home directory but it was former in remote machine and edited with sftp mount.
akuankkis
 
Posts: 66
Joined: 2011-10-09 09:29

Re: Libreoffice opens sftp connection when opening odt file

Postby akuankkis » 2018-01-14 14:53

I found this with Google and it really works.

Uncompress the original document file (it's a normal zip file) to some directory:

Code: Select all
    $ mkdir document
    $ cd document
    $ unzip ../document.odt

Modify the uncompressed data.
Create a new odt:

Code: Select all
    $ zip -0 -X ../document2.odt mimetype
    $ zip -r ../document2.odt * -x mimetype

akuankkis
 
Posts: 66
Joined: 2011-10-09 09:29

Re: [SOLVED]Libreoffice opens sftp connection when opening o

Postby debiman » 2018-01-15 06:52

thanks for posting the solution!
that is zipping without compressing, i had to use that myself in some other context.
User avatar
debiman
 
Posts: 1762
Joined: 2013-03-12 07:18


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable