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

其它类软件,非上述版软件
回复
gxowei
帖子: 1
注册时间: 2009-05-04 10:13

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

#1

帖子 gxowei » 2015-11-29 18:56

工作需要,每次程序调用的时候都是新开一个窗口,而不是在原窗口中打开一个标签。这个可以通过设置实现吗?还是需要别的终端才可以?求指导。
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

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

#2

帖子 vickycq » 2015-11-29 19:06

可以做到。

例如启动三个程序 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
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
回复