R script misidentified as MATLAB script/function

Bug #1040050 reported by Hendrik
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
shared-mime-info (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

This has been observed on Ubuntu 11.04 and 12.04 (so it probably also occurs in 11.10).

An R script (http://www.r-project.org/) is a text file with the extension ".R". If the file starts with a comment (the first line starts with "##") - which is very common for source code - the file type listed in Nautilus is "MATLAB script/function". This is annoying given that R can be seen as competitor to MATLAB.

If the file doesn't start with "##", it is identified as "plain text document", which is not really specific, but also not wrong.

I would suggest to identify text files as "MATLAB script/function" only if they have the appropriate extension ".m". This should also solve bug #319533. Further, it would be nice to add a file type for "R script".

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

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.