Bug 508754

Summary: kreadconfig does not respect filepath . (current directory)
Product: [Frameworks and Libraries] frameworks-kconfig Reporter: Christian Hartmann <hartmann.christian>
Component: generalAssignee: Matthew Dawson <matthew>
Status: REPORTED ---    
Severity: normal CC: kdedev, kdelibs-bugs-null
Priority: NOR    
Version First Reported In: 6.13.0   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot konsole with commands as in summary

Description Christian Hartmann 2025-08-26 10:11:16 UTC
Created attachment 184457 [details]
Screenshot konsole with commands as in summary

SUMMARY
kreadconfig does not respect filepath . (current directory) as it is known in most shells

STEPS TO REPRODUCE
1. get a copy of a config file (e.g. here: kwiterc) into current directory
2. change any value in it (e.g. here '1920x1200 screen: Height' from 755 to 720)
3. execute on command line:  kreadconfig6 --file $PWD/kwriterc ...
4. execute on command line:  kreadconfig6 --file ./kwriterc ...


OBSERVED RESULT
kreadconfig6 --file ./kwriterc --group 'MainWindow' --key '1920x1200 screen: Height'
> 755


EXPECTED RESULT
kreadconfig6 --file ./kwriterc --group 'MainWindow' --key '1920x1200 screen: Height'
> 720


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian Trixie
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
-