[kmymoney] [Bug 499729] New: Create a Lock File when running KMM

Brendan bugzilla_noreply at kde.org
Sun Feb 9 20:45:23 GMT 2025


https://bugs.kde.org/show_bug.cgi?id=499729

            Bug ID: 499729
           Summary: Create a Lock File when running KMM
    Classification: Applications
           Product: kmymoney
           Version: git (master)
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: general
          Assignee: kmymoney-devel at kde.org
          Reporter: KDE at Coupe7.com
  Target Milestone: ---

I use KMM on various systems and I sync my KMM data file in real time with
Syncthing. This can cause problems if I forget that it's open on one system
when I open it on a different system.

To get around this, I run KMM using a bash script that checks for the presence
of a lock file named "MyFileName.kmy.lock". 

If the lock file is present, my script reads the hostname from the lock file
and uses zenity to open a dialog box telling me that KMM is already open on the
hostname stored in the lock file and it does NOT run KMM.

If the lock file is not present, my script creates the lock file and copies the
hostname into the lock file. When KMM closes, the lock file is removed.

It would be nice if this functionality was all handled by KMM. It could be
turned on and off in the KMM settings since some people may prefer it the way
it is today.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list