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.


3 Answers 3


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


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

  • Tested and confirmed that this works. Thank you so much!
    – chimeraha
    Dec 23, 2018 at 0:34
  • IMHO this is a bad workaround, because now also JPG open in Gedit. Right click, open with other program and then selecting the program DOES work. But it's a pain in the ass.
    – Janghou
    Nov 23, 2019 at 18:36

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.


FTP protocol

SMB protocol


Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.