• 欢迎访问IT乐园(o゚▽゚)o
  • 推荐使用最新版火狐浏览器和Chrome浏览器访问本网站。

设置 Wine 应用调用 Linux 原生浏览器

编程开发 fhy 5年前 (2019-11-05) 5854次浏览 0个评论

先找到 IE 所在目录,我的是~/.wine/drive_c/Program Files (x86)/Internet Explorer,里面的 iexplore.exe 就是那个辣眼睛的 IE。
当然如果用 PlayOnLinux 安装的应用,去程序安装目录找默认 IE 文件。

备份是个好习惯:

$ cd ~/.wine/drive_c/Program\ Files\ \(x86\)/Internet\ Explorer/
$ mv iexplore.exe iexplore.exe.backup.exe

新建一个 IE 的替代品:

$ vim iexplore.exe

内容如下:

#!/bin/bash
# Allow users to override command-line options
if [[ -f ~/.config/chrome-flags.conf ]]; then
  CHROME_USER_FLAGS="$(cat ~/.config/chrome-flags.conf)"
fi
# Launch
exec /opt/google/chrome/google-chrome $CHROME_USER_FLAGS "$@"

添加可执行权限:

$ chmod 755 iexplore.exe

这样当 Wine 调用 iexplore.exe 的时候就会找到这个 bash 脚本,从而调用 Linux 上的 google-chrome 了。


IT 乐园 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:设置 Wine 应用调用 Linux 原生浏览器
喜欢 (3)
关于作者:
九零后挨踢男
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址