In network folders, Nautilus opens files by protocol rather than type
Description
Gnome opens files looking at their address protocol. If this is good system wide to let a specific application handle a determined network protocol, this is completely useless in Gnome Nautilus/File.
In example, if I have an FTP remote webspace and access it through Nautilus and if I set gedit
as the default application for x-scheme-handler/ftp
, every file I double click is opened with gedit. This is good for text files, but if I have an image, that image also is opened with gedit, which is pointless.
This is also inconsistent with Gnome property settings related to that image which is showing eog
as the default application, but Nautilus keeps opening it with gedit
, only because it looks at x-scheme-handler/ftp
while it should be looking at the file type because the position mounted by gvfs
should be treated like a normal directory.
So if I click a link with ftp://
, Gnome should open by looking x-scheme-handler/ftp
, but If I am in a gvfs mounted network position inside Nautilus, Gnome should look at file type. Sure enough If I pick every desktop file claiming to handle x-scheme-handler/ftp
and make a copy in ~/.local/share/application
deleting x-scheme-handler/ftp
from MimeType line, no application is specified for x-scheme-handler/ftp
and now Gnome relies on file type when I double click an image from ftp webspace inside Nautilus.
But this is only a workaround that have to be fixed and handled in another way. It's also confusing to newbies because they don't know they have to copy each desktop file associated to x-scheme-handler/ftp
in local config and delete x-scheme-handler/ftp
from the MimeType line.
Affected version
Steps to reproduce
-
chrome
specifiesx-scheme-handler/ftp
in MimeType line inside its desktop file. If you don't have chrome, specify an application as the default forx-scheme-handler/ftp
:gio mime x-scheme-handler/ftp org.gnome.gedit.desktop
- access in your ftp webspace through Nautilus
- open an image which
org.gnome.eog.desktop
is specified as the default application
Current behavior
Chrome (or gedit in the other case) try to open the image. If you open an image from a local folder, the correct application is chosen: eog.
Expected behavior
The image should be opened by eog also from the ftp webspace mounted by gvfs accessed through Nautilus.
Additional information
If no application is specified for x-scheme-handler/ftp
, the image is correctly opened by eog also in the previous case, but this is only a workaround that should be the default behaviour while a specific app is set for x-scheme-handler/ftp
.