GNOME Bugzilla – Bug 498195
Can't follow links to files on Windows shares
Last modified: 2021-05-19 11:13:05 UTC
Please describe the problem: Colleagues often send emails with links to files on Windows shares, but clicking and ctrl+clicking on them doesn't do anything. If samba is installed it should try and open an equivalent smb:/ path, and if there is a Windows share set-up in GNOME in 'places' then it would ideally open the path from within there. For example, an email might contain this hyperlink (either in plain text or HTML): \\192.168.0.12\data\Fibres\The Laundry\document.doc or \\biofile\data\Fibres\The Laundry\document.doc or S:\Fibres\The Laundry\document.doc I have mounted that shared folder (\\biofile\data) as "S" in GNOME and can certainly access the path smb://biofile/data/Fibres/The Laundry/document.doc Steps to reproduce: 1. Receive an email with a link to a file on a shared drive 2. Try to access it Actual results: Nothing! Expected results: The file to open up. Does this happen every time? Yes. Other information:
\\192.168.0.12\data\Fibres\The Laundry\document.doc is not an URL.
How do you mean? Copy it into Explorer in Windows and it works just fine. Insert it as a hyperlink into an HTML email, open that in Windows and you can follow the link just fine.
Also, if done properly the hyperlink will be like this, which also doesn't work: file://\\biofile\data\Fibres\The Laundry\document.doc
yeah, "\" is not used in Linux. it's "/".
Yup, so this is a bit of an issue when people are using Evolution in a mixed-OS environment, or in my case where everyone else in the office is using Windows. It would be nice if Evolution was, at the very least, able to recognise a Windows URL and interpret it as one that it can understand. It would be brilliant if the integration was so slick that Evolution was aware of Samba's configuration (i.e. if it isn't available don't let them click the link, or give a useful error) and any drives mounted through Samba or GNOME's "connect to server" facility. When Evo notices that the link refers to a Windows URL that corresponds to one of these drives, it points directly there.
Agreed with Tom. Those are not URLs. URLs are defined in http://www.faqs.org/rfcs/rfc1738.html URIs here http://www.ietf.org/rfc/rfc3986.txt That said, this could be implemented in a plugin, but I certainly don't want to see that kind of non-standard functionality on my desktop.
They might not be URL's but they're extremely useful to a user. Gnome can handle SMB url's using libsmbclient, so why not add a handler to do this for a user ? Here is an (expired) rfc draft on the format : http://davenport.sourceforge.net/draft-crhertel-smb-url-07.txt - the relevant section is here : ------------------------------------------------------------------------- 7. The Relationship Between the SMB URI and the UNC Format Some operating systems support a format known as Universal Naming Convention (UNC). UNC is a means for identifying network resources. SMB is one of the protocols supported by UNC. In general, a UNC string specifying a resource available via SMB protocol can be converted into an SMB URI string by simply adding the "smb:" or "cifs:" prefix and reversing the direction of all of the separating slashes. For example: UNC form URI form ------------------------------- ----------------------------------- \\corgis\docs\ smb://corgis/docs/ \\corgis\docs\jolyon\ smb://corgis/docs/jolyon/ \\corgis\docs\jolyon\rabbit.txt smb://corgis/docs/jolyon/rabbit.txt ---------------------------------------------------------------------------- Just prepend smb: when you see a '\\' prefix pathname and convert '\' to '/' and hand to the Gnome VFS. It's very clever to quote "this is not a URL" back at a poor user, but the fact remains that Windows gives this functionality and right now Gnome doesn't, so let's just quietly fix it for him please. Jeremy.
This has been reported for Evolution in Ubuntu at https://launchpad.net/bugs/280389
More interesting then the link to Launchpad was your comment over there: "This is also a problem for Evolution 2.25.92-0ubuntu1. If you receive an email with links in either form (\\server\path\to\file and smb://server/path/to/file), Evolution does not display them as links. They are displayed simply as plain text." Updating version number.
*** Bug 524278 has been marked as a duplicate of this bug. ***
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/Community/GettingInTouch/BugReportingGuidelines and create a new enhancement request ticket at https://gitlab.gnome.org/GNOME/evolution/-/issues/ Thank you for your understanding and your help.