0

i am very new to Linux as a whole. I use an alienware 15 R2 with Ubuntu 18.04.2 LTS on it.

i have installed matlab R2019a in the folder /media/srikar/Code/Matlab.

The ./matlab code path is /media/srikar/Code/Matlab/bin.

Please help me create a desktop launcher icon. I have gone through other answers for similar cases, but i couldn't figure out how to solve the issue in my case where the installed directory is different from the default. I installed matlab on my external drive.

pomsky
  • 70,557
srikar
  • 101

1 Answers1

1

You need to create .desktop file and put it in special folder = homedir/.local/share/applications/matlab.desktop.
Desktop file example follows, just change to correct path to your matlab binary.
After that matlab will appear in applications list, you can copy desktop shortcut to desktop or anywhere else.

[Desktop Entry]
Version=1
Name=Matlab
Comment=Your comment
Keywords=matlab
Exec=/media/srikar/Code/Matlab/bin/yourbinary
Terminal=false
X-MultipleArgs=true
Type=Application
Icon=preferences-system
Categories=GTK;Development;
StartupNotify=false
LeonidMew
  • 2,802