2

I know how to add a command to the Unity Launcher, but don't know how to have automatically opened terminal for the command.

Especially needed when sudo command needs password or command result should be seen.

1
  • Terminal=true ?
    – Mateo
    Commented Aug 4, 2014 at 14:27

1 Answer 1

4

You have two options to open a terminal or uxterm with already running a command:

uxterm -e <command>

Or

gnome-terminal -x <command>

For multiple commands to be already run:

gnome-terminal -x bash -c "<command1>; <command2>; <command3>"
3
  • gnome-terminal -e "command" works for me. How can I keep the terminal open after execution of command(s) without changing the profile?
    – Esamo
    Commented Aug 4, 2014 at 14:29
  • 1
    use exec $SHELL as the last command
    – user308564
    Commented Aug 4, 2014 at 16:02
  • and for unity (since ubuntu 17.10)?
    – JHBonarius
    Commented Jan 19, 2018 at 20:37

Not the answer you're looking for? Browse other questions tagged .