LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Creating a link for Matlab (https://www.linuxquestions.org/questions/linux-software-2/creating-a-link-for-matlab-649701/)

jjones88 06-16-2008 01:45 PM

Creating a link for Matlab
 
Hello everyone,

First off I am fairly new to linux (trying to completely switch from xp, and need to figure out matlab and I will be able to). Now about my problem.

I installed Matlab last night on Ubuntu 8.04 and it works perfectly after I installed it. However, if I close the program I can only reopen if I go to the terminal and type: /matlab7/bin/ ./matlab

This is fine for the time being, but I would love to figure out how to create a link for the toolbar. I tried to just run the file "matlab" in the bin directory and this did not work, so my understanding of "./matlab - running the exe file must be wrong"




Thanks for any help.

Josh

colucix 06-16-2008 02:28 PM

The problem is that matlab wants a controlling terminal to be launched, unless you give the option -desktop. The correct way is to create a launcher that executes the following command
Code:

setsid matlab -desktop
The setsid command ensures that Control-C interrupts are correctly handled by matlab. In the KDE toolbar I created a new launcher and given setsid as executable and "matlab -desktop" as command line arguments. Specify the full path of the matlab executable if it is not in your PATH environment variable, e.g. "/matlab7/bin/matlab -desktop".

jjones88 06-16-2008 04:43 PM

thanks a whole lot! That worked like a top, I use the GNOME desktop but I was able to create the desktop launcher quickly following the logic.


Much Appreciation,


Josh


All times are GMT -5. The time now is 01:21 AM.