no warning when a file was changed from another instance

Bug #1750161 reported by Mike Gerber
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
HomeBank
Fix Released
Low
Maxime DOYEN

Bug Description

Using HomeBank 5.1.7, it is possible to open the same file twice, and then make changes in both instances. When you save them, you lose one of the change sets.

Revision history for this message
Maxime DOYEN (mdoyen) wrote :

Yes it is, like with most programs.

Revision history for this message
Mike Gerber (mikegerber) wrote :

Try to do the same using e.g. LibreOffice Writer: It locks the file and you can't open it twice.

Revision history for this message
Mike Gerber (mikegerber) wrote :

- KeePass keeps a lockfile
- Octave detects a change "from another application"

Revision history for this message
Maxime DOYEN (mdoyen) wrote :

Those program you mention are single instance (you cannot open the program more than once), HomeBank is not. And I don't like program with this behaviour.

Some software lock or warn, some not, it is an intentional choice. Inkscape and others software I use are multi-instance, this offers flexibility, but of course requires to know what this implies and be rigorous on files you edit, the bottom bar shows several instance after all.

The only way to achieve lock/warn or whatever restriction is to turn HB into a single instance application, If I do I will maybe annoy users that use HB like this. So not sure I will change this for now.

Revision history for this message
Mike Gerber (mikegerber) wrote :

Maybe we have a misunderstanding: I agree, a restriction to run only a single instance of the program(!) would not be good, as you may want to have two different files open at the same time. However, you don't want to edit the same(!) file with two instances of the program, as this may easily lead to data loss. The latter happened to me.

So I see two possible solutions:
1. Lock the file
2. Detect changes on the file from outside (e.g. another instance of HomeBank)

Maxime DOYEN (mdoyen)
summary: - Possible to open two instances of the same file
+ no warning when a file is changed from another instance
Changed in homebank:
assignee: nobody → Maxime Doyen (mdoyen)
importance: Undecided → Low
milestone: none → 5.1.8
status: New → In Progress
summary: - no warning when a file is changed from another instance
+ no warning when a file was changed from another instance
Revision history for this message
Mike Gerber (mikegerber) wrote :

Thanks for considering this :)

Revision history for this message
Maxime DOYEN (mdoyen) wrote :

added a warning in case the modified time differ between load and save

Changed in homebank:
status: In Progress → Fix Committed
Maxime DOYEN (mdoyen)
Changed in homebank:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.