How to open a .m file by a double-click, on Ubuntu 12.04

1 vue (au cours des 30 derniers jours)
Jonas
Jonas le 11 Juil 2012
Commenté : Kosha le 21 Juil 2020
We tried some things, but it didn't work... (because by default it doesn't work as it used to work with Windows)
  1 commentaire
Daniel Shub
Daniel Shub le 25 Jan 2013
Ubuntu 12.04 doesn't provide enough information. What DE are you using (Unity, KDE, Gnome, etc.). What program do you want the m-file to open in (MATLAB, emacs, vi, etc).

Connectez-vous pour commenter.

Réponses (2)

Mark
Mark le 28 Oct 2017
For Ubuntu 16.04 this is different so.
What worked for me is appending %F to the end of Exec=some/path which is in my matlab.desktop file.
Locate the matlab.desktop file its either in
~/.local/share/applications
or
~/usr/share/applications
I found the solution here Also if you don't have a matlab.desktop file then you may want to create one link to some relevant help to create launcher icon
  2 commentaires
Farid Tavakkolmoghaddam
Farid Tavakkolmoghaddam le 18 Fév 2020
Thank you! I tested this method works on Ubuntu 18.04 and it worked for me.
Kosha
Kosha le 21 Juil 2020
Could you please explain what exactly you did? I can't make it work. Could you maybe copy the content of your .desktop file?

Connectez-vous pour commenter.


Grzegorz Knor
Grzegorz Knor le 25 Jan 2013
Modifié(e) : Grzegorz Knor le 25 Jan 2013

Catégories

En savoir plus sur Search Path dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by