R
R
reivan2016-01-10 02:05:57
linux
reivan, 2016-01-10 02:05:57

How to create a launcher icon that launches a terminal and a command in it?

I have a command to start the server (for example, rails s). I want this command to run on click on the icon in the menu bar. I know it's possible to make a launcher in Linux Mint , but I want a terminal to open so I can shut down the server by closing the terminal itself. Because if I run it in the background, the server will work even when I don't need to. How to make such an icon?
I thought about making a script file and setting the launch in it gnome-terminal, but I do gnome-terminal --command "rails s"n’t even want to open the terminal.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danila, 2016-01-11
@reivan

gnome-terminal -e rails s
xterm -e rails s
konsole -e rails s

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question