all files in local network are opened in browser
Affected version
- Nightly flatpak: Yes
- Other: Ubuntu 20.04, Arch Linux
Steps to reproduce
- connect to an FTP server in nautilus (e.g. by typing
ftp://{server}.local
in the address bar) - navigate to a file and open it by double click (e.g.
image.jpg
) - the file is opened as URI (e.g.
file:///run/user/1000/gvfs/ftp:host={ipv6_address}/data/image.jpg
) in the default browser, on flatpak the "Open With..." pop-up show sup but only with browsers as option
Current behaviour
Any type of file (images, tar archives, text files, odt files, ...) is opened in the browser. This renders nautilus unusable for browsing files on a remote filesystem.
Expected behaviour
files should be opened in their associated program (e.g. eog, nautilus, LibreOffice, ...), the same as if they are opened from a local disk
Additional information
If you open the file via the "Open With Other Application" option in the context menu, it will indeed open the file in the selected application, e.g. "Image Viewer".
Also, the issue does not appear when connecting via ssh/sftp.
The remote file type, jpeg image, is recognised correctly:
$ file --mime-type -b '/run/user/1000/gvfs/ftp:host=omv.local/data/image.jpg'
image/jpeg
and handled by eog:
$ gio mime image/jpeg
Standardanwendung für »image/jpeg«: eog.desktop
Registrierte Anwendungen:
wine-extension-jfif.desktop
wine-extension-jpe.desktop
firefox.desktop
shutter.desktop
eog.desktop
gwenview_org.kde.gwenview.desktop
gimp_gimp.desktop
gwenview_gwenview.desktop
Empfohlene Anwendungen:
wine-extension-jfif.desktop
wine-extension-jpe.desktop
firefox.desktop
shutter.desktop
eog.desktop
gwenview_org.kde.gwenview.desktop
gimp_gimp.desktop
gwenview_gwenview.desktop
However, nautilus seems to use the ftp mine handler:
$ gio mime x-scheme-handler/ftp
Standardanwendung für »x-scheme-handler/ftp«: vivaldi-stable.desktop
Registrierte Anwendungen:
firefox.desktop
vivaldi-stable.desktop
mosaic_mosaic.desktop
Empfohlene Anwendungen:
firefox.desktop
vivaldi-stable.desktop
mosaic_mosaic.desktop
which in my case points to the Vivaldi browser.
Edited by Christian Rauch