Can't save gnucash files
Mike or Penny Novack
mpnovack at mtdata.com
Fri Jun 3 08:43:11 EDT 2016
On 6/1/2016 9:10 PM, Raven Long wrote:
>
> It seems like the lock file is disappearing. At least it's gone the last
> two times it happened. That doesn't explain the permission problem, though.
>
> I'm baffled.
>
> Safe Travels,
Misunderstanding how applications use a "lock file" to control access.
You were perhaps imagining that this was a file that continues to exist
and that DATA in the file refers to the status (who has it open). That
would not work. In order to look at the data in a file you must have
permission to read that file. Instead the EXISTENCE (or non-existence)
of the file is used because it is possible to check for the existence of
a file you lack permission to use.
So when a gnucsh data file (a set of books) is opened a "lock file" is
created in the same directory and when gnucash closes (properly) that
file is deleted. In other words, when gnucash is told to open a file, it
checks for a lock file in the same directory and if found, reports "in
use". That's why you have to override (or delete a left behind lock
file) if gnucash doesn't terminate normally because in that case the
lock file wasn't deleted.
Michael D Novack
More information about the gnucash-user
mailing list