可以使用firefox -P <profile-name> -no-remote启动不同的火狐配置文件
但是,当我想在linux中使用批处理文件同时启动多个配置文件时,只有第一个配置文件启动,而后续配置文件在退出之前不会启动。
目前,这个批处理脚本没有成功:
#! /bin/bash
firefox -P "profile 1" -no-remote
firefox -P "profile 2" -no-remote
firefox -P "profile 3" -no-remote基本上,profile 1启动良好,但在我先退出firefox之前,profile 2不会启动;下一个命令在退出之前不会执行。
在Windows中,我成功地使用这个bat文件成功地启动了多个firefox:
start "" "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -P "profile 1"
start "" "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -P "profile 2"
start "" "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -P "profile 3" start之后的引号帮助实现了这一点,而在start之后没有引号,配置文件并不都是同时开始的,但是在linux中,我不知道如何做到这一点?
发布于 2013-08-11 09:28:12
您需要在后台运行它们,添加
& 到命令的末尾
发布于 2014-08-12 10:15:13
这就是我在网上搜索时帮助我的地方。
@echo off
start firefox.exe -P Profile1 -no-remote
start firefox.exe -P Profile2 -no-remote
start firefox.exe -P Profile3 -no-remotehttps://stackoverflow.com/questions/18166849
复制相似问题