如何在Ubuntu中运行多个Firefox实例?

问题描述 投票:1回答:3

我有一个 .sh 脚本,它是这样的。

#!/bin/bash
while :
do
  firefox ://imacros/?m=script.iim & sleep 600
  killall firefox
  sleep 5
done

但我想运行两个Firefox实例,于是制作了这个脚本。

#!/bin/bash
while :
do
  firefox ://imacros/?m=script.iim
  firefox ://imacros/?m=script2.iim & sleep 600
  killall firefox
  sleep 5
done

但即使是现在,也只有一个火狐的实例 在第一个脚本运行时启动。

我想知道如何才能一次运行2个实例,并且两个实例都做不同的任务?

linux bash ubuntu firefox ubuntu-14.04
3个回答
3
投票

火狐有一个选项。firefox --no-remote ;)

基本上。--no-remote 禁止firefox尝试与其他firefox实例通信;当我需要两个不同配置文件的firefox窗口时,我使用它。

文档


1
投票

你可以从不同的用户有不同的主目录运行firefox。然后,你可以有多少个实例,你需要多少。


1
投票

您可以尝试在firefox中创建另一个配置文件,并使用-no-remote选项启动另一个实例。


我在Cent Os 6.5中试过

在命令终端中运行这个命令:firefox -p -no-remote。

Firefox 配置文件管理器将打开,并要求你选择你要使用的配置文件。如果你已经有多个配置文件,请点击 "创建配置文件 "按钮创建新的配置文件,新的配置文件创建后,选择它并点击 "启动火狐"。

© www.soinside.com 2019 - 2024. All rights reserved.