https://bugs.kde.org/show_bug.cgi?id=502384
AlexB <kde....@freenet.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |--- Status|NEEDSINFO |REPORTED --- Comment #3 from AlexB <kde....@freenet.de> --- I have made further investigations and I think I have found the root cause for the issue. Scenario 1: ----------- Preparations: mkdir somefolder000 mkdir somefolder000/somesubfolder01 mkdir somefolder000/anothersubfolder02 Works fine: kate somefolder000/somesubfolder01 kate somefolder000/anothersubfolder02 kate somefolder000 Scenario 2: ----------- Preparations: mkdir anotherfolder001 mkdir anotherfolder001/somesubfolder03 mkdir anotherfolder001/anothersubfolder04 Works fine: kate anotherfolder001 Does not work as expected, Kate opens anotherfolder001 instead of its subfolders: kate anotherfolder001/somesubfolder03 kate anotherfolder001/anothersubfolder04 Investigations: --------------------- Kate stores information about previously "opened folders" in /home/$USER/.local/share/kate/anonymous.katesession file. Under [Plugin:kateprojectplugin:] information about previously opened projects and folders stored. From previous 2 examples following information is stored (newline added for readability): {"data":{"files":[{"directory":"./"}]\\,"name":"somesubfolder01"}\\,"path":"/home/someuser/somefolder000/somesubfolder01"}, {"data":{"files":[{"directory":"./"}]\\,"name":"anothersubfolder02"}\\,"path":"/home/someuser/somefolder000/anothersubfolder02"}, {"data":{"files":[{"directory":"./"}]\\,"name":"somefolder000"}\\,"path":"/home/someuser/somefolder000"}, {"data":{"files":[{"directory":"./"}]\\,"name":"anotherfolder001"}\\,"path":"/home/someuser/anotherfolder001"} In Scenario 1 first subfolders were opened in Kate, then the belonging root folder "somefolder000" => This have worked. In Scenario 2 first root folder "anotherfolder001" was opened in Kate. Trial to open any subfolder of anotherfolder001 will not work then. Conclusion: I suppose the issue is that Kate (or kateprojectplugin) searches for matching path string or sub-string in anonymous.katesession under [Plugin:kateprojectplugin:] and opens first matching path (which could be only a sub-string). This is why /home/someuser/anotherfolder001 will be opened in Scenario 2 instead of /home/someuser/anotherfolder001/somesubfolder03. -- You are receiving this mail because: You are watching all bug changes.