Public bug reported:

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.

** Affects: matlab-support (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1495218

Title:
  Enable open file with matlab desktop file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/matlab-support/+bug/1495218/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to