GnuCash
Contact   Instructions
Bug 309943 - When unable to obtain a lock, no option to open another database.
Summary: When unable to obtain a lock, no option to open another database.
Status: RESOLVED FIXED
Alias: None
Product: GnuCash
Classification: Unclassified
Component: User Interface General (show other bugs)
Version: unspecified
Hardware: Other All
: Normal enhancement
Target Milestone: ---
Assignee: ui
QA Contact: Chris Shoemaker
URL:
Whiteboard:
Keywords:
: 355500 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-07-10 06:33 EDT by Irrevenant
Modified: 2020-11-28 06:06 EST (History)
9 users (show)

See Also:


Attachments

Description Irrevenant 2005-07-10 06:33:53 EDT
Version details: Fluxbox
Distribution/Version: Debian Sarge

1.  Open GnuCash (it will load the current database).
2.  Open a second instance of Gnucash.

Gnucash will come up with a screen that says (paraphrasing) "Cannot obtain a
lock for <database name>.  <Quit> <Open Anyway> <Create New File>".

There's no "Open a different database option".  This is a pain if you want to
open two different databases to compare them like I do.

Thanks.
Comment 1 Irrevenant 2005-07-10 09:09:55 EDT
It would probably be appropriate to have both an "Open" and an "Open Recent"
option (though one button could lead to a dialog that handled both).
Comment 2 Christian Stimming 2005-07-11 04:09:57 EDT
As a workaround, you could start gnucash with the --nofile command line option...
Comment 3 Josh Sled 2006-04-30 16:51:10 EDT
Or just hit 'Cancel'.
Comment 4 Christian Stimming 2006-07-04 04:43:43 EDT
(In reply to comment #3)
> Or just hit 'Cancel'.

Err, the three buttons are "Open anyway", "Create new file", and "Quit". There is no "Cancel", is there?

On gnucash-de there were more proposals: 

- Either to have only two buttons, "Open anyway" and "Don't open anything" (which could just as well be labeled "Cancel"), which will result in the empty gnucash screen. Pro: In the empty gnucash screen it is totally obvious how to open a different file or a "Recently used" file or a new file or Quit gnucash. Contra: If people start to use the button "create new account" in the empty gnucash window, IIRC we run into all sorts of problems because there isn't a clearly defined new empty gnc-book. OTOH the empty gnucash window still shows up if people press "cancel" in the new file druid, so this has to be dealt with anyway.

- Or have three buttons, "Open anyway", "Open a different file", "Create new file"
Comment 5 Christian Stimming 2006-09-12 04:30:35 EDT
*** Bug 355500 has been marked as a duplicate of this bug. ***
Comment 6 Christian Stimming 2006-09-12 04:55:28 EDT
To revisit this again: Which of the buttons represent a use-case that is actually really used?

- "Open anyway" - gnucash has crashed. Probably used regularly.

- "Create new file" - does anyone actually use this one here at this location?

- "Quit" - was added as a specific RFE in bug#92191 which said "most of the time, this means you accidentally opened a second copy of gnucash when one was already open".

I propose to add the button

- "Open a different file" - if you want to run two gnucash instances with a different file each.

And we should think about throwing out the button "Create new file", because I think the decision of starting a new file is seldomly made at this accidental startup dialog. Actually this used to be the option "Don't open anything", but as this in turn is even more confusing, it was replaced by "Create new file" here http://svn.gnucash.org/trac/changeset/7244 (wow, that's a long time ago).
Comment 7 Neil Williams 2006-09-12 05:01:29 EDT
I'll second the proposal to add "Open a different file" and remove "Create New File".

IMHO this would seem the best solution to the Debian bug reports too.

'--nofile' is already documented in the manpage for anyone who needs to use that option.
Comment 8 Christian Stimming 2006-09-12 10:54:07 EDT
On IRC there was even more agreement on "Open a different file". So someone (heh) needs to implement that.
Comment 9 Micha Lenk 2008-08-26 07:13:08 EDT
Just for the records: This is still not implemented in 2.2.6.
Comment 10 David Carlson 2018-09-15 10:02:05 EDT
Ten years later release 2.6.17 this bug is still languishing.  If the user finds that GnuCash is trying to open a different file than the one he wants to use, there is no option to open a different file.  it might not be very convenient to start over from the command line, especially if the file is buried down a long path or even on a remote resource.

Is it so hard to add a button to open a different file?
Comment 11 Bob 2020-11-28 06:06:28 EST
I pushed a change for version 4.3 that changes the 'New File' option to 'Open with No File'. That way the main Gnucash Window will allow you to do 'File->New' to create a new file, 'File->Open' to browse for a file or use the history.

Note You need to log in before you can comment on or make changes to this bug.