Bug 391869

Summary: File selection dialog forgets directory context when opening from remote server
Product: [Applications] kate Reporter: H Richardson <68guns>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 17.12.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description H Richardson 2018-03-14 22:05:47 UTC
The file selection dialogs (eg. for open file) are forgetting the last used directory, if that last used directory is remote - for instance over SFTP using a KIO slave.

Previous to OpenSuse Leap 42.3 (Kate 16.08.02 and Framework 5.26.0) it would always remember the last open directory, so for instance if you open one file on a remote SFTP server, the next time you click "open" the file-browsing begins from the same remote place.

Currently now the file selection is dumping you back in your local home directory every time, regardless of the context. This makes for a tedious navigation back to a particular remote directory location, especially if it is deep down a directory tree.

To reproduce on vanilla OpenSuse Leap 42.3 or Leap 15 beta:
1. In Kate or Kwrite open a remote file on a SFTP server.
2. Once opened, click open again.
3. See where the starting point is for browsing the filesystem. It should be the SFTP server still.

The second time you click open, instead of remembering the last used directory of this context, namely the remote SFTP directory, it dumps you back into you local home directory instead.

Expected Results:  
The software should start the filesystem browsing from the same directory as houses the currently open file. 

Exceptions:
The directory remembering works correctly if the current context is a local drive directory. The bug  only occurs on remote server access.
Comment 1 Christoph Feck 2018-03-30 16:01:13 UTC

*** This bug has been marked as a duplicate of bug 374913 ***