After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 537605 - gnucash clutters filesystem
gnucash clutters filesystem
Status: VERIFIED WONTFIX
Product: GnuCash
Classification: Other
Component: General
2.2.x
Other All
: Normal enhancement
: ---
Assigned To: Andreas Köhler
Andreas Köhler
: 542227 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-06-10 14:32 UTC by Rolf Leggewie
Modified: 2018-06-29 22:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Rolf Leggewie 2008-06-10 14:32:37 UTC
Please describe the problem:
For every "real gnucash file", the program creates dozens of xac-files, log-files and whatnot.  The good intentions are understood, but right now, it is a bit much and clearly hinders usability.  It would be nice if gnucash aggregated all files in a tar for example or moved the extra files out of sight by other means (~/.gnucash/ ?)

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Andreas Köhler 2008-07-06 11:44:11 UTC
-1 from me.  I will leave it open for another guy to close it though.

(1) Log and backup files should not be hidden for at least two reasons:
(1.1) They are useful.
(1.2) They contain sensitive data.
(2) There is a configuration parameter for the number of days to keep those files.  If you do not like them, you can even disable them by using 0.
(3) What usability issues do you see?  Typically I do not edit more than 2 or 3 files semi-simultaneously, so they all appear in my history.  If I keep one file in one directory, the main file is always listed first.
Comment 2 Derek Atkins 2008-07-07 04:18:41 UTC
You can set the number of days backup and log files are kept.
If you don't like how many it's saving, change that setting to "1"

This is not a bug.  Thanks.
Comment 3 Rolf Leggewie 2008-07-07 16:01:50 UTC
reopening: gnucash could could at least give the option to save backups to ~/.gnucash/backups instead

The usability issue is quite clearly clutter.  My computer has not only gnucash files and gnucash is not the only program I use.  I think the usability issue (for the computer, not necessarily for gnucash itself) should be obvious.  It is the same issue as a cluttered desk.
Comment 4 Rolf Leggewie 2008-07-07 16:03:47 UTC
reassigning to myself, I guess neither will Andi nor Derek will want to work on it.
Comment 5 Derek Atkins 2008-07-07 16:21:06 UTC
"too many options" is a BAD THING.
Why does this need to be implemented?
Why is it more important than fixing lots of the other real bugs that exist?

All it does is hide the storage instead of removing it, making users even less aware that their data is being copied..  And it gives a potential attacker yet another vector to steal personal data because they could cause gnucash to store backups somewhere the attacker controls.
Comment 6 Rolf Leggewie 2008-07-07 18:27:07 UTC
I made no claims as to the relative importance of this bug.  Furthermore, if there is a security problem, then this is not going to worsen that.  Is there is a need to discuss how to try and fix this, then let's discuss.
Comment 7 Derek Atkins 2008-07-07 18:53:04 UTC
I'm afraid you're wrong, adding this feature WOULD add a security issue that does not exist currently.  Right now GnuCash only writes back into the directory where the datafile already exists, which is already controlled by the user.  By adding an option to control where those go you're opening up an attack to cause gnucash to potentially write data files to a place NOT controlled by the user.

So again I think this request should be closed as "not a bug", because it's just not a bug.  It's working as designed.
Comment 8 Andreas Köhler 2008-07-08 22:08:37 UTC
Fuck Ack.
I have seen that you also track this one launchpad as well, so let us close it as NOTABUG and leave it that way :-)
Comment 9 Andreas Köhler 2008-07-08 22:09:29 UTC
(In reply to comment #8)
> Fuck Ack.
Ouch.  This was *not* intended.
s/Fu../Full/, please
Comment 10 Oxmosys 2008-07-09 02:06:50 UTC
Unless I don't understand some aspects of this bug, I would say that how gnucash currently works and how Rolf suggest it to work can both be used!

The problem with Rolf suggestion is that backup files always go to ~/.gnucash/backups, but this is not necessary. We can still keep gnucash data file *and* "gnucash backups" directory where the user decided to put the gnucash data file. 

This way, the user would still completely control his data files, and it would be cleaner and easier to manage for the final user than huge amount of individual files mixed with the main file.

What do you think about this suggestion?

Even if you don't decide to implement this specific solution, I persist to think that having continuously increasing number of files in gnucash folder is a usability problem that can be worked on (but not the most high priority bug ;) ).
Comment 11 Derek Atkins 2008-07-09 05:10:58 UTC
It's not a continuously increasing number of files.  It's based SOLELY on how many times you save your data file within the backup time period you have specified.  If you change that setting to a lower number GnuCash will keep fewer backup files.
Comment 12 Oxmosys 2008-07-09 07:13:07 UTC
Oh! I didn't even know that gnucash worked that way, great! Please ignore my comment and thanks for these informations :) .
Comment 13 Rolf Leggewie 2008-07-09 09:10:44 UTC
(In reply to comment #8)
> I have seen that you also track this one launchpad as well, so let us close it
> as NOTABUG and leave it that way :-)

I was afraid of that reaction and thus opened a ticket at a place where usability is usually of higher concern.  Just to make sure it remains on the radar.

Increasing number or not, tens or even hundreds of files is a nuisance and hinders usability.  Having gnucash save backup files automatically for a few days is a good thing and the numbers get large easily when you autosave every 10 minutes or so which is also a good thing.
Comment 14 Rolf Leggewie 2008-07-09 09:50:21 UTC
BTW, since there seems to be some concern about users actually recognizing the backup files as such (FWIW, *I* never thought they were *complete* backup files but rather some kind of log or diff), I suggest to actually rename them to *.bkp or *.bak.

I am not complaining, but I think one has to scour through the not so well-structured docs too often which when it occurs might hint at a bad usability choice.  No offense meant, I am trying to make gnucash better with concrete suggestions.
Comment 15 Derek Atkins 2008-07-09 13:02:57 UTC
It's in the docs.  It's in the FAQ.  If someone has a question there are many ways to look up the answer.
Comment 16 Rolf Leggewie 2008-07-09 13:31:09 UTC
Thanks, Derek for proving my point exactly

"I think one has to scour through the not so well-structured docs too often which when it occurs might hint at a bad usability choice."

+1 for bak or bkp from me.  small step, but even that counts.
Comment 17 Derek Atkins 2008-07-09 14:29:37 UTC
Now you're putting incorrect words in my mouth.  I think the GnuCash documentation is extremely well written and very well organized.  Moreover, I think the FAQ is pretty well organized, too.  For a question of "what does .xac mean", I think its PERFECTLY reasonable to have to look that up!   The average user never even notices the backups in the first place because gnucash auto-opens the file.

I don't object to .bak, however then you lose the knowledge that it's a GNUCASH backup datafile.

Also, I suspect that this will all be moot once we swap over to SQL as the default.  We wont have .xac backups (only .log files).
Comment 18 Rolf Leggewie 2008-07-09 15:01:21 UTC
(In reply to comment #17)
> Now you're putting incorrect words in my mouth.

I didn't intend to and I wasn't.  I was not referring to whether or not the docs are in good shape.  The point you helped me make was that one even has to consult the docs.  With .bak, the file's contents and purpose is obvious and you don't need to even grow the desire of "gee, I wonder what those files really are, let's look that up".

> I don't object to .bak, however then you lose the knowledge that it's a GNUCASH
> backup datafile.

OK, let's do it, then.  

The point you raise could be addressed by having the files named $origfilename-$date.gnucash.bak or somthing like that.  Although I guess that $origfilename will usually give that away, too.

> Also, I suspect that this will all be moot once we swap over to SQL as the
> default.  We wont have .xac backups (only .log files).

Possibly, and I am looking very forward to it.  But nobody really knows if it's weeks, months or years we are talking about until that happens.
Comment 19 Derek Atkins 2008-07-09 16:08:44 UTC
*** Bug 542227 has been marked as a duplicate of this bug. ***
Comment 20 Derek Atkins 2008-07-09 16:24:11 UTC
*** Bug 542227 has been marked as a duplicate of this bug. ***
Comment 21 John Ralls 2018-06-29 22:05:26 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=537605. Please update any external references or bookmarks.