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 Desktop Packages, which is subscribed to nautilus in Ubuntu. https://bugs.launchpad.net/bugs/989555 Title: .inc files are opened in browser by default Status in “nautilus” package in Ubuntu: Incomplete Bug description: If you double click a file with extension ".inc", by default it will open in the browser. Default should be the text editor, (unless there is some more suitable application, but certainly not the browser) I know this is only a default value and you can configure file associations, but default values for everything should always be at least arguably reasonable values, not absurd nonsense. ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: nautilus 1:3.2.1-0ubuntu4.2 ProcVersionSignature: Ubuntu 3.0.0-19.33-generic 3.0.27 Uname: Linux 3.0.0-19-generic i686 NonfreeKernelModules: nvidia ApportVersion: 1.23-0ubuntu4 Architecture: i386 Date: Fri Apr 27 11:41:23 2012 InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429) ProcEnviron: PATH=(custom, user) LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: nautilus UpgradeStatus: Upgraded to oneiric on 2011-12-07 (141 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/989555/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

