代码: 全选
firefox-esr -new-instance -P xxx
不知有什么解决方法?
我是通过如下脚本监控得到的残留证据:
代码: 全选
cx=0
while :;
do
sleep 1
x=$(pgrep -u $(whoami) firefox | wc -l)
if [ $x -gt 2 ]
then
let cx+=1
if [ $cx -gt 2 ]
then
beep -f 800
fi
else
cx=0
fi
done
如果关掉重复运行的提示窗口后beep声音依然存在则说明存在后台残留
然后我就这样发现后台残留了
运行的方式是"bash script_file"没有加执行属性
openbox绑定:
代码: 全选
<command>sh -c '/xxx && firefox -new-instance -P xxx &'</command>