Enable open file with matlab desktop file

Bug #1495218 reported by Lars Nyström
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
matlab-support (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

At the moment it is not possible to open a file in Matlab directly by clicking on it in Nautilus, because Matlab isn't part of the list of applications which can open files when you right click Properties -> Open with.

It appears Unity only lists applications which have "%f" as part of the Exec line in desktop files. If would be awesome if you changed the matlab.desktop file to

Exec=matlab -desktop -r "edit %f"

That would add Matlab to the programs Unity thinks can open files and thus enable users to associate .m files with Matlab.

This is even more important as Unity dropped the support of adding custom commands to open files, which means that it's pretty hard for a novice to figure out how to open .m files in Matlab since solutions like this one won't work any more:
http://www.walkingrandomly.com/?p=300

I'm using version matlab-support 0.0.19 on Ubuntu 14.04.

The current workaround is to manually edit /usr/share/applications/matlab.desktop and change the Exec line to what I described above.

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

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

Changed in matlab-support (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.