I am not sure if this is a bug report or a feature requst but I think Terminal should be able to execute a sequence of commands in a desktop configuration file or a shell script with the --execute option. For example the following desktop configuration file is executed by xterm: [Desktop Entry] Version=1.0 Encoding=UTF-8 Type=Application Name=lan Comment= Categories=Application; Exec=xterm -e "echo a: ; ls a* ; python" Icon= Terminal=false StartupNotify=false But fails with Terminal: Exec=Terminal --execute "echo a: ; ls a* ; python" Terminal opens in this case, but nothing happens.
Sure, because Terminal does launch the specified command directly. And "echo a: ; ls a* ; python" is not the name of a binary in your $PATH. What you want to do is to execute that stuff in the shell: Use "sh -c '...'".
Thanks. Terminal --command "sh -c 'command1; command2'" does work. Terminal -e "sh -c 'command1; command2'" works, too. But: Terminal --execute "sh -c 'command1; command2'" does not. And, strange, the option -e is not mentioned in the documentation: http://www.os-cillation.com/documentation/terminal/C/advanced.html#command-line-options I am a little confused. Perhaps I should read some Linux manuals in more depth... :-)