[kmymoney] [Bug 475674] Create a Lock File when running KMyMoney

Brendan bugzilla_noreply at kde.org
Tue Apr 1 16:29:12 BST 2025


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

--- Comment #4 from Brendan <KDE at Coupe7.com> ---
I just tested this change and it does not appear to be working correctly. When
I run KMM, it does create a file named FileName.kmy.lck which then appears on
my other system after Syncthing syncs the folder.

When I try to open FileName.kmy on the second system, it opens fine, meaning I
now have the same KMM file open on 2 systems. It overwrites the original lock
file with the information from the second system.

Contents of the lck file:

First System:
699112
kmymoney
LNX-BMC
ac37039462fe4d0ab453b92a7b496f83
52b82ed4-97dd-4e78-a58a-4bf11c4bf95a

Second System:
38354
kmymoney
LNX-KIT
ac37039462fe4d0ab453b92a7b496f83
95ade840-0d72-431d-b996-0db4f80d0f57

When I close KMM on the second system, the lock file is deleted. When I close
it on the second system, I get and error on the command line (because the file
is no longer there):

Could not remove our own lock file "/PATH/FileName.kmy.lck" maybe permissions
changed meanwhile?

Here is the commend line output from the First and Second system *referrint to
the order that I open KMM):

First System:

WebConnect: Running in server mode
This is not KMyMoney plugin:
'/usr/lib64/qt5/plugins/kmymoney_plugins/konlinetasks_sepa.so'
3:2025/04/01 09-21-00:(null)(699112):banking_update.c:  610: No AqBanking
config folder found at [/home/bcoupe/.aqbanking/settings6/users] (-1)
3:2025/04/01 09-21-00:(null)(699112):banking_update.c:  610: No AqBanking
config folder found at [/home/bcoupe/.aqbanking/settings/users] (-1)
3:2025/04/01 09-21-00:(null)(699112):banking_update.c:  411: There is no old
settings folder, need initial setup
"kmymoneySHeZoO" Python module failed to load
Traceback (most recent call last):
  File "/tmp/kmymoneySHeZoO.py", line 10, in <module>
    import logging.config
  File "/usr/lib64/python3.13/logging/config.py", line 31, in <module>
    import logging.handlers
  File "/usr/lib64/python3.13/logging/handlers.py", line 30, in <module>
    import pickle
  File "/usr/lib64/python3.13/pickle.py", line 33, in <module>
    from struct import pack, unpack
  File "/usr/lib64/python3.13/struct.py", line 13, in <module>
    from _struct import *
ImportError:
/usr/lib64/python3.13/lib-dynload/_struct.cpython-313-x86_64-linux-gnu.so:
undefined symbol: PyByteArray_Type
Could not remove our own lock file "/home/bcoupe/KMM/Coupes.kmy.lck" maybe
permissions changed meanwhile?

(kmymoney:699112): GLib-GIO-CRITICAL **: 09:23:05.374: GFileInfo created
without standard::icon

(kmymoney:699112): GLib-GIO-CRITICAL **: 09:23:05.374: file ../gio/gfileinfo.c:
line 1765 (g_file_info_get_icon): should not be reached

(kmymoney:699112): GLib-GIO-CRITICAL **: 09:23:05.374: GFileInfo created
without standard::icon

(kmymoney:699112): GLib-GIO-CRITICAL **: 09:23:05.374: file ../gio/gfileinfo.c:
line 1765 (g_file_info_get_icon): should not be reached

(kmymoney:699112): GLib-GIO-CRITICAL **: 09:23:05.374: GFileInfo created
without standard::icon


Second System:

WebConnect: Running in server mode
This is not KMyMoney plugin:
'/usr/lib64/qt5/plugins/kmymoney_plugins/konlinetasks_sepa.so'
3:2025/04/01 09-22-18:(null)(38354):banking_update.c:  610: No AqBanking config
folder found at [/home/bcoupe/.aqbanking/settings6/users] (-1)
3:2025/04/01 09-22-18:(null)(38354):banking_update.c:  610: No AqBanking config
folder found at [/home/bcoupe/.aqbanking/settings/users] (-1)
3:2025/04/01 09-22-18:(null)(38354):banking_update.c:  411: There is no old
settings folder, need initial setup
"kmymoneyJIOaix" Python module failed to load
Traceback (most recent call last):
  File "/tmp/kmymoneyJIOaix.py", line 10, in <module>
    import logging.config
  File "/usr/lib64/python3.13/logging/config.py", line 31, in <module>
    import logging.handlers
  File "/usr/lib64/python3.13/logging/handlers.py", line 30, in <module>
    import pickle
  File "/usr/lib64/python3.13/pickle.py", line 33, in <module>
    from struct import pack, unpack
  File "/usr/lib64/python3.13/struct.py", line 13, in <module>
    from _struct import *
ImportError:
/usr/lib64/python3.13/lib-dynload/_struct.cpython-313-x86_64-linux-gnu.so:
undefined symbol: PyByteArray_Type

(kmymoney:38354): GLib-GIO-CRITICAL **: 09:22:36.569: GFileInfo created without
standard::icon

(kmymoney:38354): GLib-GIO-CRITICAL **: 09:22:36.569: file ../gio/gfileinfo.c:
line 1765 (g_file_info_get_icon): should not be reached

(kmymoney:38354): GLib-GIO-CRITICAL **: 09:22:36.569: GFileInfo created without
standard::icon

(kmymoney:38354): GLib-GIO-CRITICAL **: 09:22:36.569: file ../gio/gfileinfo.c:
line 1765 (g_file_info_get_icon): should not be reached

(kmymoney:38354): GLib-GIO-CRITICAL **: 09:22:36.569: GFileInfo created without
standard::icon

(kmymoney:38354): GLib-GIO-CRITICAL **: 09:22:36.569: file ../gio/gfileinfo.c:
line 1765 (g_file_info_get_icon): should not be reached

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


More information about the KMyMoney-devel mailing list