Cześć.
Patrząc w helpa:
usr@ubuntu19:~$ mate-terminal --help-terminal-options
Usage:
mate-terminal [OPTION?]
Terminal options; if used before the first --window or --tab argument, sets the default for all terminals:
-e, --command Execute the argument to this option inside the terminal
--profile=PROFILE-NAME Use the given profile instead of the default profile
-t, --title=TITLE Set the terminal title
--working-directory=DIRNAME Set the working directory
--zoom=ZOOM Set the terminal's zoom factor (1.0 = normal size)
MATE Terminal Emulator
wygląda na to, że poprawnie złożona komenda wyglądałaby tak:
mate-terminal --working-directory="path/to/your/program" --command "./cpp.out"
Ewentualnie możesz jeszcze wskazać, żeby mate-terminal uruchomił się w osobnym oknie:
mate-terminal --window --working-directory="path/to/your/program" --command "./cpp.out"