Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 在不同的显示器上启动两次firefox_Linux_Firefox_Command Line_Multiple Monitors_Autostart - Fatal编程技术网

Linux 在不同的显示器上启动两次firefox

Linux 在不同的显示器上启动两次firefox,linux,firefox,command-line,multiple-monitors,autostart,Linux,Firefox,Command Line,Multiple Monitors,Autostart,我正在使用openthinclient并尝试创建一个脚本,在不同的监视器上(每个实例在不同的监视器上)在机器上全屏启动iceweasel两次 这可能吗 现在我只跑了 iceweasel -new-window http://stackoverflow.com -new-window http://www.google.com 所以有两个实例正在运行。如何将窗口移动到其他监视器?如果我在Fedora上记忆犹新,您可以在启动窗口应用程序之前通过设置var显示来选择显示: xhost +localh

我正在使用openthinclient并尝试创建一个脚本,在不同的监视器上(每个实例在不同的监视器上)在机器上全屏启动iceweasel两次

这可能吗

现在我只跑了

iceweasel -new-window http://stackoverflow.com -new-window http://www.google.com

所以有两个实例正在运行。如何将窗口移动到其他监视器?

如果我在Fedora上记忆犹新,您可以在启动窗口应用程序之前通过设置var
显示来选择显示:

xhost +localhost
DISPLAY=:0.0
gui-app
显示的第一个数字=:X.0
是显示的数字

试试你的操作系统(Debian?)


在Centos 7上适用于我的命令列表:

xhost +localhost
DISPLAY=:0
firefox     => openned on the first monitor
DISPLAY=:1
firefox     => openned on the second monitor

如果我记得很清楚,在Fedora上,您可以通过设置var
display
,在启动窗口应用程序之前选择显示器:

xhost +localhost
DISPLAY=:0.0
gui-app
显示的第一个数字=:X.0
是显示的数字

试试你的操作系统(Debian?)


在Centos 7上适用于我的命令列表:

xhost +localhost
DISPLAY=:0
firefox     => openned on the first monitor
DISPLAY=:1
firefox     => openned on the second monitor

我尝试了以下方法:xhost+localhost DISPLAY=:2.0 gui应用程序iceweasel-显示0.0到2.0的新窗口,没有任何更改。这是Debian OSTry的命令:
cd/tmp/.X11 unix&&for x in x*;do echo“${x#x}”;完成
以获取正确的显示号码此命令为我提供了
:0:1
。如果我设置
DISPLAY=:1
它在第二个监视器上运行良好(第二个数字不是必需的)。我正在Centos7上工作,现在没有Debian可供测试…您的答案可能是正确的,但在两个屏幕上使用您的命令时,我总是得到:0:(您应该看看这个答案。您可能有一个逻辑显示,并且可以通过
xterm-geometry WthxHt+X+Y
设置位置。我尝试了以下方法:xhost+localhost display=:2.0 gui应用程序iceweasel-显示0.0到2.0的新窗口,没有任何更改。这是Debian OSTry命令:
cd/tmp/.X11 unix&&对于x*;do echo中的x:${x#x}”完成
以获得正确的显示号码此命令为我提供了
:0:1
。如果我设置
显示=:1
,它在第二个监视器上运行良好(第二个数字不是必需的).我正在使用Centos7,现在没有Debian可测试…您的答案可能是正确的,但在两个屏幕上使用您的命令时,我总是得到:0:(您应该查看此答案。您可能有一个逻辑显示器,并且可以通过
xterm-geometry WthxHt+X+Y