Ubuntu – Cannot open text editor with double click in ftp Nautilus

ftpnautilustext-editor

I am working on some ftp in which there are some php files, but whenever I double click on files it gets opened in browser, while local php files opens in text editor. How to open php in ftp with text editor.

Best Answer

This is affecting 18.04 as well. The only remotely related bug (and really old one) I have found is Files & Folders - Favorites opens FTP in browser instead of Nautilus . But this proposed solution doesn't help.

Open

/usr/share/applications/mimeinfo.cache

Find

x-scheme-handler/ftp=firefox.desktop;

change it to:

x-scheme-handler/ftp=nautilus-folder-handler.desktop;