wine内调用系统firefox
Tofloor
poster avatar
安洛
deepin
2020-05-27 23:00
Author
因为网课需要用wine装了个钉钉,但是有个问题就是如果在里面打开链接,会打开wine自带的ie,这个ie版本很旧基本没法用,所以我想问下有没有大佬知道如何在wine内调用系统的firefox浏览器?

另:在网上找到了调用Chrome的方法,将ie文件替换为以下脚本:
  1. #!/bin/bash
  2. # Allow users to override command-line options
  3. if [[ -f ~/.config/chrome-flags.conf ]]; then
  4.   CHROME_USER_FLAGS="$(cat ~/.config/chrome-flags.conf)"
  5. fi
  6. # Launch
  7. exec /opt/google/chrome/google-chrome $CHROME_USER_FLAGS "$@"
Copy the Code

经测试是有效的。但是我不知道怎么改成调用firefox。


Reply Favorite View the author
All Replies
avatar
leafgreen
deepin
2020-05-27 23:26
#1
我猜exec 那行的路径改为firefox的路径
Reply View the author
avatar
安洛
deepin
2020-05-27 23:50
#2
https://bbs.deepin.org/post/195127
我猜exec 那行的路径改为firefox的路径

不行。这样firefox无法正常获取要打开的链接地址。
Reply View the author
avatar
wubozh
deepin
2020-06-04 00:21
#3
本帖最后由 wubozh 于 2020-6-3 16:26 编辑

要改的话,三行都要改吧。前两行是chrome的配置文件,第三行是chrome的可执行文件,这三个地方都要改成firefox的才行

Reply View the author
avatar
KeiSyut
deepin
2020-07-07 00:33
#4
楼主把那个代码改成下面的:

#!/bin/bash
# Allow users to override command-line options
# Launch
exec /usr/lib/firefox/firefox "$@"

在我机子上可以调用firefox。
Reply View the author
avatar
安洛
deepin
2020-07-07 03:25
#5
https://bbs.deepin.org/post/195127
楼主把那个代码改成下面的:

#!/bin/bash

成功了!谢谢大佬!
Reply View the author