Oh, I see, it depends on the contents of the file. If the file contains html code (even if it contains also php code as in my case), it opens in the browser.
This is the kind of "features" a-la-Microsoft, where the software tries to be "smart" and the result is you can't rely on it. I attach the file. If I rename it with .php extension it opens it gedit (as expected). ** Attachment added: "html.inc" https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/989555/+attachment/3108265/+files/html.inc -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989555 Title: .inc files are opened in browser by default To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/989555/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs