找到 IE 所在目录
$ cd ~/.wine/drive_c/Program Files (x86)/Internet Explorer
里面的iexplore.exe就是那个辣眼睛的 IE。
备份:
$ 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了。