Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo apt install gnome-terminal
- 参考网站:https://blog.csdn.net/wutong_login/article/details/17767153
- gnome-terminal -t " title-name" -x bash -c " sh ./run.sh;exec bash;"
- -t 为打开终端的标题,便于区分。
- -x 后面的为要在打开的终端中执行的脚本,根据需要自己修改就行了。
- 最后的exec bash;是让打开的终端在执行完脚本后不关闭。
- gnome-session-properties
Add Comment
Please, Sign In to add comment