Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Icon=matlab
Name=MATLAB
Comment=Start MATLAB - The Language of Technical Computing
Exec=env -u _JAVA_OPTIONS matlab -desktop -nosplash -r "cd('%d'); edit '%f'"
Categories=Development;
MimeType=text/x-matlab;
StartupWMClass=sun-awt-X11-XFramePeer
X-Ayatana-Desktop-Shortcuts=New_Window;
[New_Window Shortcut Group]
Name=New MATLAB window
Exec=env -u _JAVA_OPTIONS matlab -desktop -nosplash
matldir=/usr/local/MATLAB
icondir=/usr/local/share/icons/hicolor/scalable/apps
appsdir=/usr/local/share/applications
mkdir -p $icondir
mkdir -p $appsdir
ln -s $matldir/bin/matlab /usr/local/bin
wget http://upload.wikimedia.org/wikipedia/commons/2/21/Matlab_Logo.png -O $icondir/matlab.png
chmod +x matlab.desktop
cp matlab.desktop $appsdir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.