4

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.

  • same problem for me (since ubuntu 17.10), have you found a solution? – chicoff Nov 14 '17 at 8:26
  • Not yet still searching for it. – jkp Nov 14 '17 at 16:31
  • 1
    Same issue here. For now I'm using the built in browser in Gedit to navigate to the files instead of Nautilus on 17.10 (in 16.04 double clicking in Nautilus still opens the remote files directly). In Gedit hit F9 to toggle display of the sidebar. With it open browse your remote server just like in Gedit. Double clicking PHP files opens them as expected. Hit F9 again to hide the sidebar while you work. – wunderdojo Dec 22 '17 at 19:54
3

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;

2

I believe this is a bug that needs to be looked at. I have now reported this at https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1791283

Please log in there and give any feedback in comments to get this looked at.

1

Open /usr/share/applications/mimeinfo.cache, eg with vim

sudo vim /usr/share/applications/mimeinfo.cache

Find the line with

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

and comment or delete it.

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.