GoodTekken

20220706_gnome-terminal

Jul 18th, 2022 (edited)
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. sudo apt install gnome-terminal
  2. 参考网站:https://blog.csdn.net/wutong_login/article/details/17767153
  3.  
  4. gnome-terminal -t " title-name" -x bash -c " sh ./run.sh;exec bash;"
  5.  
  6. -t 为打开终端的标题,便于区分。
  7. -x 后面的为要在打开的终端中执行的脚本,根据需要自己修改就行了。
  8. 最后的exec bash;是让打开的终端在执行完脚本后不关闭。
  9.  
  10.  
  11. gnome-session-properties
Add Comment
Please, Sign In to add comment