Ubuntu – Run command don’t run command line programs

command lineunity

In Unity there is some menu called "Execute a command", which could be run by shortcut ALT + F2. It is working fine only when I try to use it to run GUI programs like e.g. gedit.

It is completely not working when I put command which try run command line program like: vim test.txtAfter that there is no error message simply nothing happen. It is some bug or some "feature"?

How could I run command line programs inside Ubuntu/Unity without running "Terminal"?

Best Answer

Command line applications will use a terminal anyhow. If you want to edit test.txt with vim, you still need to say which terminal you want to use. The full command you have to enter, assuming you run vim in gnome-terminal (using ALT + F2) is:

gnome-terminal -x vim test.txt

Than it works.