Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED]Libreoffice opens sftp connection when opening odt

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
akuankkis
Posts: 81
Joined: 2011-10-09 09:29

[SOLVED]Libreoffice opens sftp connection when opening odt

#1 Post by akuankkis »

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.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Libreoffice opens sftp connection when opening odt file

#2 Post by debiman »

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?

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

Re: Libreoffice opens sftp connection when opening odt file

#3 Post by akuankkis »

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: 81
Joined: 2011-10-09 09:29

Re: Libreoffice opens sftp connection when opening odt file

#4 Post by akuankkis »

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

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

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

#5 Post by debiman »

thanks for posting the solution!
that is zipping without compressing, i had to use that myself in some other context.

Post Reply