Score:0

Modern versions of Meld can't compare local folder with remote folder (in /run/user/1000/gvfs/) - can we fix it?

zw flag

When I use Meld 3.20.4-1 on Ubuntu MATE 21.10 I can't compare local and remote folders using below steps:

  1. Connect to some share with Caja - press Ctrl+L, enter sftp://user@hostname.local in the address-bar to get the folder mounted to /run/user/1000/gvfs/sftp:host=hostname.local,user=user/

  2. Open terminal and run Meld from it to compare folder pair:

    meld /run/user/1000/gvfs/sftp:host=hostname.local,user=user/home/user/Desktop ~/Desktop
    

As the result I get

$ meld /run/user/1000/gvfs/sftp:host=hostname.local,user=user/home/user/Desktop ~/Desktop
Usage:
 meld Start with an empty window
 meld <file|folder> Start a version control comparison
 meld <file> <file> [<file>] Start a 2- or 3-way file comparison
 meld <folder> <folder> [<folder>] Start a 2- or 3-way folder comparison

Error: remote folder “/run/user/1000/gvfs/sftp:host=hostname.local,user=user/home/user/Desktop” not supported

Can we do something with this problem on user-level?

Score:0
zw flag

Really such comparison is broken since 20.04 LTS, so we need to wait for the fix upstream.

Temporary workaround is to use SSHFS as follows:

  1. Install sshfs package by

    sudo apt-get install sshfs
    
  2. Create temporary mount-point for remote location

    mkdir ~/sshfs
    sshfs user@hostname.local:/home/user/Desktop ~/sshfs
    
  3. Compare local folder with the remote using the same Meld version

    meld ~/sshfs ~/Desktop
    

    Do some synchronization.

  4. Unmount remote location and optionally remove mountpoint

    umount ~/sshfs
    # rmdir ~/sshfs
    
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.