Bug 503250

Summary: dolphin_directorysizemode.upd hangs
Product: [Applications] dolphin Reporter: daron439
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: kfm-devel
Priority: NOR    
Version First Reported In: git-master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description daron439 2025-04-23 19:59:23 UTC
SUMMARY
$ /usr/libexec/kf6/kconf_update --debug /usr/share/kconf_update/dolphin_directorysizemode.upd 
kf.config.kconf_update: Checking update-file "/usr/share/kconf_update/dolphin_directorysizemode.upd" for new updates
kf.config.kconf_update: "dolphin_directorysizemode.upd" : Found new update "convert-directorysizecount-to-directorysizemode"
kf.config.kconf_update: "dolphin_directorysizemode.upd" : 5 :' "File=dolphinrc" ':  Parse error
kf.config.kconf_update: "dolphin_directorysizemode.upd" : 6 :' "Group=ContentDisplay" ':  Parse error
kf.config.kconf_update: "dolphin_directorysizemode.upd" : Running script "dolphin_directorysizemode.py"
kf.config.kconf_update: About to run "/usr/bin/python3"
kf.config.kconf_update: Script contents is:
 "import fileinput\n\nfor line in fileinput.input():\n    if line.startswith(\"DirectorySizeCount=true\"):\n        print(\"DirectorySizeMode=ContentCount\")\n    if line.startswith(\"DirectorySizeCount=false\"):\n        print(\"DirectorySizeMode=ContentSize\")\n\nprint(\"# DELETE DirectorySizeCount\")\n\n"
^[[Akf.config.kconf_update: "dolphin_directorysizemode.upd" : 7 :' "Script=dolphin_directorysizemode.py,python3" ':  update script did not terminate within 60 seconds: "/usr/bin/python3"
QProcess: Destroyed while process ("/usr/bin/python3") is still running.

And I think it slows down other parts of the startup, for example, xwaylanvideobridge fails to start with kf.statusnotifieritem: KDE platform plugin is loaded but SNI unavailable

STEPS TO REPRODUCE
1. Update to fc56f8f2f92b98ccb9a1da0ffcbb57d723dc33bb
2. /usr/libexec/kf6/kconf_update --debug /usr/share/kconf_update/dolphin_directorysizemode.upd 

OBSERVED RESULT
The command takes a long time to execute

EXPECTED RESULT
The command should execute quickly

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION