GnuCash <nofile> Opens Dirty?

David T. sunfish62 at
Sun Feb 4 11:35:58 EST 2018

David C.,

It is apparently my mistake, but I understood the “--nofile” command line argument to mean “Open GnuCash with no file.” 

As in: No. File. Nothing. And if I have Nothing in my file, what, pray tell, is there to save? 

David T.

P.S. — For yucks, I executed “Gnucash --nofile” and immediately saved “Nofile” and opened it in a text editor. Here it is, creating the root account without a file:

<?xml version="1.0" encoding="utf-8" ?>
     xmlns:gnc=" <>"
     xmlns:act=" <>"
     xmlns:book=" <>"
     xmlns:cd=" <>"
     xmlns:cmdty=" <>"
     xmlns:price=" <>"
     xmlns:slot=" <>"
     xmlns:split=" <>"
     xmlns:sx=" <>"
     xmlns:trn=" <>"
     xmlns:ts=" <>"
     xmlns:fs=" <>"
     xmlns:bgt=" <>"
     xmlns:recurrence=" <>"
     xmlns:lot=" <>"
     xmlns:addr=" <>"
     xmlns:owner=" <>"
     xmlns:billterm=" <>"
     xmlns:bt-days=" <>"
     xmlns:bt-prox=" <>"
     xmlns:cust=" <>"
     xmlns:employee=" <>"
     xmlns:entry=" <>"
     xmlns:invoice=" <>"
     xmlns:job=" <>"
     xmlns:order=" <>"
     xmlns:taxtable=" <>"
     xmlns:tte=" <>"
     xmlns:vendor=" <>">
<gnc:count-data cd:type="book">1</gnc:count-data>
<gnc:book version="2.0.0">
<book:id type="guid">a75807d572ced056657e14cf61730861</book:id>
<gnc:count-data cd:type="commodity">1</gnc:count-data>
<gnc:count-data cd:type="account">1</gnc:count-data>
<gnc:commodity version="2.0.0">
<gnc:account version="2.0.0">
  <act:name>Root Account</act:name>
  <act:id type="guid">27174afb49511a6a82c3da7274337c90</act:id>

<!-- Local variables: -->
<!-- mode: xml        -->
<!-- End:             -->

> On Feb 3, 2018, at 7:03 PM, David Carlson <david.carlson.417 at <mailto:david.carlson.417 at>> wrote:
> BTW, I am running 2.6.18 in windows and I do not recall the warning referring to any changes.
> David C
> On Sat, Feb 3, 2018 at 7:54 AM, David Carlson <david.carlson.417 at <mailto:david.carlson.417 at>> wrote:
> I just had that experience as I was not logged in to my file server when I started GnuCash and I still think that my earlier comment is true.  GnuCash is offering to save the empty file. The interesting thing, though, is that because the file was unnamed it did not have a asterisk in the filename space on the top banner.
> David C
> On Sat, Feb 3, 2018 at 7:41 AM, David Carlson <david.carlson.417 at <mailto:david.carlson.417 at>> wrote:
> David,
> I think that a non-existent file with no data is not the same as a file that has been created with no data.  A created file has some structure and some defaults set.  GnuCash is thus saying that it is not a properly saved file with no data.
> David C
> On Sat, Feb 3, 2018 at 1:56 AM, David T. via gnucash-devel <gnucash-devel at <mailto:gnucash-devel at>> wrote:
> Hello,
> When I open GnuCash with no file (i.e., “gnucash --nofile”), I find that if I immediately attempt to open a different file or exit the program altogether (i.e., without doing anything to the current session), I am warned that all changes to the current file will be lost. Given that I: a) have made no changes, and b) have “nofile” open at the time, this dialog is absurd.
> GnuCash should NOT consider “nofile” to be dirty, and thus should NOT ask that I save “nofile”. I don’t see any bugs filed for this.
> David
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at <mailto:gnucash-devel at>
> <>

More information about the gnucash-devel mailing list