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

标签 linux firefox command-line multiple-monitors autostart

这可能吗?

目前我只会运行

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

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

最佳答案

如果我记得在 Fedora 上你可以通过设置 var DISPLAY 在启动窗口应用程序之前选择显示:

xhost +localhost
DISPLAY=:0.0
gui-app

DISPLAY=:X.0 的第一个数字是显示器的编号。

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


适用于 Centos 7 的命令列表:

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

关于linux - 在不同的显示器上启动两次 firefox,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38628354/

相关文章:

linux -/etc/logrotate.d/中的两个文件试图管理同一个日志文件

linux - bash 中有趣的 grep 匹配

sql - 通用命令行 SQL 程序?

bash - find -mtime 超过 1 小时的文件

即使指定了 Content-Length,cURL POST 错误 411

linux - 使用 sed - shell 脚本将值 append 到变量

css - FF 在 :after element (CSS) 上应用随机字体大小

javascript - 对 localhost 的 CORS https 访问在 Chrome 上有效,但在 Firefox 上无效

ubuntu - 如何在 Ubuntu 21.10+ 中的 firefox 中打开配置文件管理器或使用 snap 安装的 firefox?

linux - 找出文件何时添加到系统或放置在目录中