smb: support "anonymous" user to try anonymous mount first
Submitted by Michael Terry
Assigned to gvf..@..e.bugs
The other backends that support anonymous logins (afp and ftp) seem to support passing "anonymous@" as the user part of the URI.
This is useful for smb too, ever since a commit in 2015 that stopped trying an anonymous mount first . Now there's no way to specify an anonymous URI that doesn't cause the GMountOperation dialog to appear.
I hit this because a user of deja-dup reported that every time the automatic scheduled backups would start, it asks them to log in as it mounts the location. If I could tell them to simply save "smb://anonymous@..." as the location to fix the problem, that would help.
 https://git.gnome.org/browse/gvfs/commit/?id=a0aec329939e198b6faea6b788df7278f6543436 -- actually this commit left a comment in the source that is now outdated: "in case of no username specified, try anonymous login"
Version: git master