分页: 1 / 1

gnome-terminal程序调用的时候,如果多次调用能不能是打开标签页,而不是新开一个窗口

发表于 : 2015-11-29 18:56
gxowei
工作需要,每次程序调用的时候都是新开一个窗口,而不是在原窗口中打开一个标签。这个可以通过设置实现吗?还是需要别的终端才可以?求指导。

Re: gnome-terminal程序调用的时候,如果多次调用能不能是打开标签页,而不是新开一个窗口

发表于 : 2015-11-29 19:06
vickycq
可以做到。

例如启动三个程序 prog1, prog2, prog3 分别位于一个终端窗口的三个标签中:

代码: 全选

gnome-terminal --tab -e "prog1" --tab-with-profile=Default -e "prog2" --tab-with-profile=Default -e "prog3"
注意 Default 是启动 prog1 时使用的 profile 名称,可在菜单中查看

注:本人未测试

具体参考
http://askubuntu.com/a/277550
http://manpages.ubuntu.com/manpages/har ... nal.1.html