Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 4496  / 2 Years ago, sat, september 24, 2022, 3:30:39

Basically, I have the code I need to run the thread to start my Minecraft server in an executable text file. When I click it, it asks me what I want to do with it: Run In Terminal, Display or just Run.



Because I want to create a link to it and then put that link in Docky, I need a way of setting it to Run In Terminal by default. I found a way to make it Run by default, but I need to run it in terminal.


More From » executable

 Answers
7

Open the Dash and search for Main Menu. (It's in the Software Center if it's not installed.) Open it and create a new item. Type in the name you want it to have, then type in the command line:



gnome-terminal -x executable_text_file_path/and_name


For instance, I have a Shell Script folder in my Home folder. To run one of them in Terminal, I would type in...



gnome-terminal -x "Shell Scripts/script_name.sh"


I only used the quotation marks because I have spaces in the names. If you have no spaces, you don't need the quotation marks.



You should now be able to go to the Dash and type in the name you gave your program. A single click on it will start it in Terminal mode - or just drag it to your Launcher!


[#32878] Saturday, September 24, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
olfdit

Total Points: 118
Total Questions: 98
Total Answers: 97

Location: Honduras
Member since Fri, Nov 25, 2022
1 Year ago
;