elementary / terminal

Terminal emulator designed for elementary OS
https://elementary.io
GNU Lesser General Public License v3.0
404 stars 97 forks source link

Options -e and -x open empty terminal #460

Open k4r7u opened 4 years ago

k4r7u commented 4 years ago

Executing a command with io.elementary.terminal -n -e "uname -a" or io.elementary.terminal -n -x "uname -a" just opens an empty terminal window. The command is just used as an example here. I can not execute any command with either the -e or the -x flag. This behavior extists since Terminal 5.5.1 or 5.5.0.

jeremypw commented 4 years ago

The empty terminal issue with the -n flag should be fixed in version 5.5.1. There has been a regression with the -e and -x flags however :-(

jeremypw commented 4 years ago

As a work around, you should specify the working directory when executing a command:

io.elementary.terminal --working-directory=[path] --execute=[command]

k4r7u commented 4 years ago

Thank you very much. Specifying any path as working directory allows to use -x and -e together with the -n flag.