The file *is* compressed.

Opening a non-compressed version of the file will get you something like this:

<?xml version="1.0" encoding="utf-8" ?>
<gnc-v2
     xmlns:gnc="http://www.gnucash.org/XML/gnc";
     xmlns:act="http://www.gnucash.org/XML/act";
     xmlns:book="http://www.gnucash.org/XML/book";
     xmlns:cd=“http://www.gnucash.org/XML/cd";
...
etc.

Rename the copy, removing the .gnucash and replace it with .gz

In a terminal, use the gzip -d command to decompress the file.

Something like this:  gzip -d mybook.xml.gz

It will rename it to .xml, stripping the .gz extension. (unless you specified 
an outfile parameter in the gzip command)

NOW, open the .xml file in gedit or atom.

You’ll see something like I showed above.

Then do a Find/Replace on your file paths, and make certain that all path 
separators are “/“ and not “\”.

You don’t need to recompress the file, just rename it to .gnucash and open it 
from the File menu of GnuCash. When you next save it, GnuCash will re-compress 
it.

Regards,
Adrien

> On Sep 12, 2018, at 4:56 PM, John Sears via gnucash-user 
> <[email protected]> wrote:
> 
> I tried gedit and atom ..  but only seem to get gibberish..    my first few 
> lines..  ù
> 
> "�a�`��0;��F����%V����f�`uK@�S@�g�u�t����|Ϭ�����<>���==>=����mx먞��r|�������ݒ���������O����_��?������7���7����~����o}�,ǧ߼}z��;���'���o�||�����뗎O������~��w��{|.��~R��C?��{�=;�u�=�#.�������\~Ƿ���yK?��{������>?;�=\_�|���ß^:���.��޿W}���g5?;;SH����.����xu-b)g�����q��������������������8��;�o�����8���}{v���1��5Ϟ�?�~��w�'�>>����֋�.����l�z8��{�O�;��;zq̥����i�=���U>+׭r?���(~��������<��M痏������������������I��<�r���o�z��.����\�����⠷AU���}��=?��ώ�[�Fc,��V;+��5��e�����Ż^��Kħ��
>  
> �������?����û������__z����Y��t;�O�[�_�t��'���__>|�t79���|�=��_}���g�s�z�ˏ�.�tx����y�r��������"
> 
> 
> I'll investigate sed
> 
> 
> On 12/09/2018 23:53, Adrien Monteleone wrote:
>> You should not need to manually mount any external drive like a USB key. It 
>> will automount for you in the /media part of the file tree as you noticed.
>> 
>> Your issue is likely more as John noted that LO mucked up the XML. If you 
>> don’t want to attempt sed or nano, try Gedit (all come with Ubuntu) or Atom. 
>> (need to install that one separately)
>> 
>> I’d have to say, sed is probably the fastest method but you’ll need to read 
>> over a few pages of sed command examples on replacing text, be mindful of 
>> escaping special characters like “/“ and “:”. Otherwise, Gedit and Atom are 
>> straight forward with no learning curve with Find & Replace operations 
>> similar to LO.
>> 
>> Regards,
>> Adrien
>> 
>>> On Sep 12, 2018, at 8:23 AM, John Sears via gnucash-user 
>>> <[email protected]> wrote:
>>> 
>>> Hi,
>>> 
>>> yep, I have no problem finding the files and opening them on the filing 
>>> system ( naultilus) ..
>>> 
>>> Although I have not done any mounting per se..  should I ?
>>> 
>>> 
>>> 
>>> On 12/09/2018 21:17, Michael or Penny Novack wrote:
>>>> On 9/11/2018 8:00 PM, John Sears via gnucash-user wrote:
>>>> 
>>>>> So my files were all stored on G:/documents/xxx.pdf
>>>>> 
>>>>> Now that I have transferred to Linux, this path is not recognised - "
>>>>> GNUCash could not open the associated URI: file:///G:/documents/xxx.pdf"
>>>>> 
>>>>> Is there a way to bulk edit the paths of all the  links so that Linux
>>>>> will recognise  the SD path?  I would prefer not to go  into every
>>>>> single transaction to do this, as I have a lot of linked files.
>>>>> 
>>>>> Or is there someway ( and this might be more of a Linux question) to map
>>>>> the SD card to the "file:///G" terminology.
>>>>> 
>>>>> Thanks!
>>>>  Been a while since I used a 'nix operating system and I don't know what 
>>>> modern linuxes might provide for "automounting". But in a traditional 'nix 
>>>> environment you don't just stick in removable devices. You also have to 
>>>> "mount" (and when removing, "umount") them.
>>>> 
>>>> In other words, I think yours is a "new 'nix user" problem. Forget gnucash 
>>>> for a moment. Can you put a file (say a document) on a removable device 
>>>> and then plug that device into your 'nix machine and open it? The path 
>>>> will not be the same as in Windows. The path to the data (in linux) will 
>>>> depend on WHERE in the linux file system you mounted it? << The "mount" 
>>>> command will have specified that >>
>>>> 
>>>> Michael
>>>> 
>>>> Michael D Novack
>>>> _______________________________________________
>>>> gnucash-user mailing list
>>>> [email protected]
>>>> To update your subscription preferences or to unsubscribe:
>>>> https://lists.gnucash.org/mailman/listinfo/gnucash-user
>>>> If you are using Nabble or Gmane, please see 
>>>> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
>>>> -----
>>>> Please remember to CC this list on all your replies.
>>>> You can do this by using Reply-To-List or Reply-All.
>>> _______________________________________________
>>> gnucash-user mailing list
>>> [email protected]
>>> To update your subscription preferences or to unsubscribe:
>>> https://lists.gnucash.org/mailman/listinfo/gnucash-user
>>> If you are using Nabble or Gmane, please see 
>>> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
>>> -----
>>> Please remember to CC this list on all your replies.
>>> You can do this by using Reply-To-List or Reply-All.
>> 
>> _______________________________________________
>> gnucash-user mailing list
>> [email protected]
>> To update your subscription preferences or to unsubscribe:
>> https://lists.gnucash.org/mailman/listinfo/gnucash-user
>> If you are using Nabble or Gmane, please see 
>> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
>> -----
>> Please remember to CC this list on all your replies.
>> You can do this by using Reply-To-List or Reply-All.
> 
> _______________________________________________
> gnucash-user mailing list
> [email protected]
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see 
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.


_______________________________________________
gnucash-user mailing list
[email protected]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

Reply via email to