.inc files are opened in browser by default

Bug #989555 reported by Teo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
shared-mime-info (Ubuntu)
Confirmed
Low
Unassigned

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)

Revision history for this message
Teo (teo1978) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, could you attach a such file example to the bug?

Changed in nautilus (Ubuntu):
status: New → Incomplete
importance: Undecided → Low
Revision history for this message
Teo (teo1978) wrote :

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).

Revision history for this message
Sebastien Bacher (seb128) wrote :

right, not sure if that's "a-la-microsoft", but it allows the system to deal fine with "buggy" filenames and do the correct thing on most of the cases, you can always right click or dnd the file to a launcher icon to open it with a specific sofware

Changed in nautilus (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Teo (teo1978) wrote :

Well the bug is still valid: if the file contains html AND PHP, it should open it with the text editor as it does with .php files. Opening it in the browser is not "the correct thing" at all. It would be acceptable if it contains _only_ html (though with a .inc extension I would deem more reasonable opening it in gedit even in the case of only html content).

Changed in nautilus (Ubuntu):
status: Invalid → New
Revision history for this message
Sebastien Bacher (seb128) wrote :

if you have an improved matching pattern for the detection feel free to send a patch then

affects: nautilus (Ubuntu) → shared-mime-info (Ubuntu)
Changed in shared-mime-info (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.