How to customize a link at your desktop in LINUX!
1. Find out where is the bash file for launching the program, usually in $INSTALL_DIR/bin/prog
if you have one, use it directly; if not, write one yourself as below(taking matlab as an example)
--------------------------matlab.sh----------------------
#!/bin/bash cd /usr/local/matlab7/bin # this is where the executable file is
sudo ./matlab
---------------------------------------- change the mod to be executable #chmod +x matlab.sh 2. Setup a desktop link, with the extension .desktop #gedit /usr/share/applications/MATLAB.desktop --------------------MATLAB.desktop--------------------- [Desktop Entry] Name=LinuxMatlab Comment=MATLAB For linux Exec=/usr/local/matlab7/bin/matlab #or your matlab.sh here Icon=/usr/local/matlab7/src/matlab.png # if you dont have one, try anything you like Terminal=true #this is necessary for matlab Type=Application Categories=Application; ---------------------------------------------- |
3. Double click it to launch! |