7

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 3

5

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
  • 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
0

list ftp handlers

gio mime x-scheme-handler/ftp 

set gedit as default ftp handler

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

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

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.