How to disable Gecko package popup for Wine?

6,591

This can be disabled by exporting the following options:

export WINEDLLOVERRIDES="mscoree,mshtml="

Related:

Share:
6,591
kenorb
Author by

kenorb

Updated on September 18, 2022

Comments

  • kenorb
    kenorb over 1 year

    When I run my app under Wine:

    wine my_app.exe
    

    I've got this annoying popup:

    Wine could not find a Gecko package

    which says:

    Wine could not find a Gecko package which is needed for applications embedding HTML to work correctly.

    I understand that I need to install Gecko (either by sudo apt-get install wine-gecko\* or using the install-addons.sh script),

    however I don't want to install Gecko, but simply suppress/hide this message as my app works correctly when pressing Cancel button.

    How I can do that? Is there any parameter for that?

    Running wine --help or man wine doesn't say much.

    • AFH
      AFH almost 9 years
      Did you build the app yourself? I suspect the build has an external library reference, even though you may not call the functions in it. You could try rebuilding with static libraries, thereby eliminating external calls. For what it's worth, I don't have Gecko installed, and even Firefox 39.0 runs quite happily without it under Wine 1.6.2 on Ubuntu 15.04 without errors. Firefox has a dependentlibs.list file in its installation directory: I presume these DLLs are loaded dynamically on start-up: perhaps you could use a similar technique.
    • kenorb
      kenorb almost 9 years
      The wine is installed from the binaries (sudo apt-get install wine winetricks => wine1.6) on Ubuntu vivid VM. And the app is a standard installer, so there is nothing much to rebuild.
    • AFH
      AFH almost 9 years
      That EXE calls WINHTTP.DLL, which may well be the culprit. I can only guess why it might be there: maybe there is licence checking during the installation, and if you do not do this then you will not see a problem.