Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 900  / 2 Years ago, wed, june 1, 2022, 8:14:18

In Ubuntu, Matlab should be started with the following command: setsid matlab -desktop



Accordingly, I've created such a bash script:



#!/bin/bash
setsid matlab -desktop


and saved it as /usr/bin/launchMatlab.



Now, if I press Alt+F2, type launchMatlab and click Run or press Enter, Matlab is started. However, Gnome Do, though finds the script, only allows to open, reveal, open terminal and copy to clipboard. Execution of the script as a program is allowed.



How to make Do launch the script?


More From » bash

 Answers
4

Use a launcher (.desktop file). To do this, right click on your desktop and click 'Create Launcher...' and fill in the details:



matlab.desktop



You can then copy it to ~/.local/share/applications and you should be able to type 'Matlab' to open it with gnome-do.


[#44285] Thursday, June 2, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sertold

Total Points: 445
Total Questions: 123
Total Answers: 113

Location: Burundi
Member since Wed, Sep 28, 2022
2 Years ago
;