How To: Remove Entries from Recent File History List
After searching forever and finding no answers, but seeing other people also ask ... the question remains, how to remove the history of opened accounts, say for example you have several test accounts in various locations or named the same ... example: business.gncash, but 3 versions... obviously it's very helpful to remove what is not currently used or named unique.
Most people use Windows right ?
Open regedit (type regedit in the run box, press ok)
Open HKEYCURRENTUSER
Expand Software then GSettings then org then gnucash
Click on the History folder to see a list of names and locations
Right click and delete all the names not in use
Gnucash will then show what you want to use in its history
If an entry is mistakenly deleted, simply use the normal "open"menu in gnucash to reopen that account and it will again list it in it's history.
And optionally, maybe the designers could somewhere have a checkbox or button to clear recent file history list, two varieties, one labelled Windows, one labelled Linux.
-
...ian commented
Sadly, as you've already discovered, there doesn't seem to be an in-application configuration or setting for this, and since it's cosmetic I have my doubts the maintainer will prioritize it in any way.
A universal work-around, that is, one which should work for all operating systems, is to rename the directory in which you keep your Gnucash data files then simply load Gnucash. When the "file not found" dialogue appears, tell it that you want to delete the history entry associated with that file. You'll have to restart Gnucash for each entry in the list. Then rename the directory back to its original name. This shouldn't be a problem for most people; it was a little annoying for me since I'm putting together a set of instructional videos I've created and deleted a lot of Gnucash files and re-opened a lot of backup files. When I record a take I want Gnucash to neither open the last file, nor to give a "file not found" dialogue.
Under Linux Gnucash stores its configuration using the dconf database subsystem. The best solution for Linux users is to install deconf-editor, run it of course, navigate to org -> gnucash -> history, and delete the appropriate entry(ies). You can also set the size of the history list to 0 which has the effect of disabling history.
To segué for a moment, and at the risk of sounding too critical, "Most people use Windows" is an annoying phrase too-often heard by non-Windows users, and is especially annoying when one is looking for the solution to a problem which has nothing to do with the operating system. A better approach may be to say, "this is the way I had to resolve it under Windows", or something similar.