[GNC] Relative paths in transaction associations
Justin Haynes
justin at justinhaynes.com
Wed Feb 13 12:18:26 EST 2019
OK, so I can see that with a populated "Path head for Transaction
Association Files", that linking transactions to files after this is
populated, results in the "Relative" field being checked next to the
corresponding entry in the "All Transaction Associations" window, and an
absolute path in the window. When I have my other laptop, I can experiment
to see if changing the Path head configured in GNUCash on that laptop will
result in GNUCash on that machine finding the files associated when I click
on Open Associated File/Location from the corresponding Transaction.
Second Question: if my experiment works, and GNUCash behaves the way I
would like, how can I go back and change the links to all previously
created transaction associations to be relative links to the same files?
Thanks,
Justin
On Wed, Feb 13, 2019 at 10:46 AM Justin Haynes <justin at justinhaynes.com>
wrote:
> Found it.
>
> Edit -> Preferences -> General -> Path head for Transaction Association
> Files.
>
> Now i just need to experiment with it to see how it behaves.
>
> On Wed, Feb 13, 2019 at 10:43 AM Justin Haynes <justin at justinhaynes.com>
> wrote:
>
>> What provision is there for relative paths in transaction associations?
>> I often associate transactions with files where the files are almost always
>> receipts. This results in a URL to an absolute path which appears in the
>> Tools -> Transaction Associations dialog. Also from a transaction I can
>> access the file I linked to with Transaction -> Open Associated
>> File/Location. The file opens in whatever program is associated for that
>> file type.
>>
>> I would rather have relative paths which resolve with relation to an
>> absolute base path I can figure. This would allow me to move from system
>> to system and only change the absolute path on the target system's GNUCash
>> instance. I then only use one instance at a time on the same files of
>> course. These files exist on local machines but sync with a cloud service
>> so that the file is available wherever I'd like it to be.
>>
>> Tools -> Transaction Associations brings up the "All Transaction
>> Associations" window, where I see columns for the Date, Description,
>> Association (URL link to the resource, either local (file:// with link to
>> absolute path) or remote). There is then an "Available?" column populated
>> with "Unknown" in each row, and a column called "Relative" with no data.
>>
>> Since there is "Relative" field, I assumed there must be some proviision
>> for this.
>>
>> Thanks,
>>
>> Justin
>>
>>
>>
>
More information about the gnucash-user
mailing list