Sync terminal with KIOFuse mount when browing remote directories

Authored by feverfew on Mar 25 2020, 8:17 PM.

Description

Sync terminal with KIOFuse mount when browing remote directories

Summary:
Adds the capability to sync the terminal with a KIOFuse mount if the URL is remote.
Partly based on the existence of another DBus currenly in review:
https://invent.kde.org/kde/kio-fuse/-/merge_requests/21

Syncing works in both "directions". Changing the URL to a remote URLin the
DolphinView will change the URL in the terminal to the KIOFuse local path equivalent.
Conversely changing the URL in the terminal to one that happens to be in a KIOFuse
mount will change the URL in the DolphinView to the remote URL equivalent.

Test Plan:
Manual testing (see video in comments).

  1. Checking that changing directory in DolphinView from remote/local to local doesn't

cause any regressions.

  1. Checking that changing directory in terminal from local to local (but not in

KIOFUse mount) doesn't cause any regressions.

  1. Checking that changing directory in DolphinView from remote/local to remote

correctly changes URL in terminal to KIOFuse equivalent.

  1. Checking that changing directory in terminal from local to KIOFuse path

correctly changes the URL in the DolphinView to the remote equivalent.

  1. Checking the KIOFuse not being installed doesn't cause any regressions.
  2. Changing directories very quickly does not cause any slowdown.

Reviewers: Dolphin, fvogt, elvisangelaccio

Reviewed By: Dolphin, fvogt, elvisangelaccio

Subscribers: elvisangelaccio, fvogt, kfm-devel, ngraham

Tags: Dolphin

Differential Revision: https://phabricator.kde.org/D28290

Details