Wine呼叫外部Linux瀏覽器代替內建IE

2021-08-19 20:33:58 字數 729 閱讀 7790

找到 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了。

瀏覽器如何呼叫外部應用程式

1 首先需要編寫乙個登錄檔,副檔名.reg windows registry editor version 5.00 hkey classes root rtmp url rtmp protocol handler url protocol hkey classes root rtmp shell ...

呼叫外部程式

下面是呼叫外部程式的 system.diagnostics.processstartinfo info new system.diagnostics.processstartinfo 這裡是你要呼叫到的外部程式 info.filename vmdotnet v2.0.50727 fetionvm.e...

php呼叫外部命令(Linux下)

exec cp fpath.tpath,out,status 複製檔案,fpath為原檔案位址,tpath為要複製到的位置路徑,status為執行結果返回值。include conn to.php top sql select from uchome pic where 1 order by pic...