LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-16-2008, 01:45 PM   #1
jjones88
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Rep: Reputation: 0
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
 
Old 06-16-2008, 02:28 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
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".

Last edited by colucix; 06-16-2008 at 04:46 PM.
 
Old 06-16-2008, 04:43 PM   #3
jjones88
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ln - creating a link to an executable with parameters laucian Linux - Newbie 2 02-07-2008 02:59 AM
creating a link drmjh Linux - Newbie 10 11-24-2006 02:55 PM
Creating Link eggoz Linux - Software 3 06-17-2006 04:54 PM
Creating a link to a windows share cheycomm Linux - Networking 2 04-28-2006 06:45 AM
creating hard link problem cranium2004 Linux - Newbie 2 06-20-2005 05:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration