Bug 463416

Summary: Can't directly open folders in Kate anymore.
Product: [Applications] kate Reporter: Will Chen <inbox>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph, waqar.17a
Priority: NOR    
Version First Reported In: 22.12.0   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 22.12.0
Sentry Crash Report:

Description Will Chen 2022-12-24 05:20:38 UTC
SUMMARY
***
You used to be able to open folders directly in Kate when launching, such as from Dolphin or from the terminal.

You can't do that anymore.
***


STEPS TO REPRODUCE
`$ kate PathToMyFolder`

Or right click in Dolphin on a directory and "Open Folder With" Kate.


OBSERVED RESULT
Kate opens in the last project folder with which it was used, not the folder given to it on launch.


EXPECTED RESULT
Kate launches directly with the given folder as the active project.

This is what happens with Kate 22.08.3 from the NixOS 22.11 Nix channel.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: X
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Comment 1 Waqar Ahmed 2022-12-28 05:47:16 UTC
Is the setting:

Configure -> Projects -> "Restore Open Projects" 

checked? If it is, does it work if you disable it?
Comment 2 Christoph Cullmann 2022-12-31 17:43:45 UTC
That was fixed with 87314996fe8c95e1dffb5b0a7f341bf183bc4de9, for 22.12, disabling "Restore Open Projects"  might mitigate it.