Nemo fails to reconnect to SSH shares after connection breaks
Nemo (All versions since at least 2014) running on Ubuntu fails to reconnect to SSH shares after a connection has timed out or otherwise become broken (wifi/3G failure etc.):
"Error: The name :1.897 was not provided by any .service files. Please select another viewer and try again."
Sometimes when attempting to unmount these shares Nemo also freezes for a while and finally crashes, which is probably related.
Looks like others have similar issues:
- http://askubuntu.com/questions/477254/error-connecting-to-server-in-nemo
- https://github.com/linuxmint/nemo/issues/678
Workaround:
killall gvfsd-sftp
killall nemo
Probable cause:
This nemo_bookmark_list_insert_item() invokes nemo_bookmark_copy () which copy old bookmark's location (bookmark->details->location) too. When g_file_query_info_async() try to query the old location (eg. "/var/run/user/1000/gvfs/smb-share:server=172.30.44.160,share=共享/") , the old dbus name can't found, this name was not provided by any .service files.