简体   繁体   中英

gnome-terminal -- $SHELL fails to execute the simplest commands

gnome-terminal -v -- $SHELL launches a new bash shell just as expected.

gnome-terminal -v -- $SHELL -c 'cd /' does nothing at all. A window briefly flashes, and that's it. Tried many other commands, like echo with the same result.

journalctl -f reveals Failed to start VTE child process 11350 launched by gnome-terminal-server process 7182. and that's it.

How do I debug this further?

this may not be the exact solution you need, but if you make a new profile for the terminal, and change the property "when command exits" to "hold terminal open" then include the following argument:

gnome-terminal --window-with-profile=[new profile name here]

the new window will not briefly flash, and may allow more detailed debugging from whatever processes are called in the new window

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM