M BUZZ CRAZE NEWS
// general

FTP files opened from Nautilus opens in Firefox instead of default application (Ubuntu 18.04)

By Daniel Rodriguez

I often use Nautilus to connect to my ftp server. Whenever I open a remote file from nautilus (even when it states that the default program is something like gedit) it still opens that file in firefox. Choosing the "Open with Other Application" option works, but it's annoying having to do that every time. I remember reading that this is a known bug and it has to do with some other application/library and not with Nautilus, but I can't find url to that bug anymore.

Again, This is only an issue when opening remote/ftp files and is not an issue with local files.

2

3 Answers

If you mainly want to edit files with gedit, you can add the following line to ~/.config/mimeapps.list

x-scheme-handler/ftp=org.gnome.gedit.desktop

Put it under the block "Default Applications". It works for me, but it sets the default program for ALL ftp-files to gedit.

2

list ftp handlers

gio mime x-scheme-handler/ftp 

set gedit as default ftp handler

gio mime x-scheme-handler/ftp gedit.desktop

This happens because you using FTP protocol. I don't know is it the normal behaviour of Nautilius but if you mount an FTP drive with it will download files from it and not open them. To open files directly like on a local machine use SMB (Samba) protocol instead FTP in Nautilius.

Example:

FTP protocol

ftp://192.168.1.1/yoursharedfolder

SMB protocol

smb://192.168.1.1/yoursharedfolder

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy