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 309943 - When unable to obtain a lock, no option to open another database.
When unable to obtain a lock, no option to open another database.
Status: RESOLVED OBSOLETE
Product: GnuCash
Classification: Other
Component: User Interface General
unspecified
Other All
: Normal enhancement
: ---
Assigned To: David Hampton
Chris Shoemaker
: 355500 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-07-10 10:33 UTC by Irrevenant
Modified: 2018-07-02 07:15 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Irrevenant 2005-07-10 10:33:49 UTC
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 13:09:51 UTC
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 08:09:53 UTC
As a workaround, you could start gnucash with the --nofile command line option...
Comment 3 Josh Sled 2006-04-30 20:51:06 UTC
Or just hit 'Cancel'.
Comment 4 Christian Stimming 2006-07-04 08:43:39 UTC
(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 08:30:31 UTC
*** Bug 355500 has been marked as a duplicate of this bug. ***
Comment 6 Christian Stimming 2006-09-12 08:55:24 UTC
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 09:01:25 UTC
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 14:54:03 UTC
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 11:13:04 UTC
Just for the records: This is still not implemented in 2.2.6.
Comment 10 John Ralls 2018-06-29 20:52:46 UTC
GnuCash bug tracking has moved to a new Bugzilla host. The new URL for this bug is https://bugs.gnucash.org/show_bug.cgi?id=309943. Please continue processing the bug there and please update any external references or bookmarks.