How to disable Gecko package popup for Wine?

4

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.

kenorb

Posted 2015-07-31T18:50:11.543

Reputation: 16 795

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. – AFH – 2015-07-31T21:17:51.350

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.

– kenorb – 2015-07-31T21:27:46.553

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. – AFH – 2015-07-31T21:57:05.597

Answers

3

This can be disabled by exporting the following options:

export WINEDLLOVERRIDES="mscoree,mshtml="

Related:

kenorb

Posted 2015-07-31T18:50:11.543

Reputation: 16 795

-1

I wouldn't worry about Gecko being too much to install, and Wine may need it someday for something to work. There is a simple fix to this (and perhaps other problems caused by changing versions)... Delete the files: system.reg, user.reg, userdef.reg, and .update-timestamp which are in your .wine folder. Then reinstall Wine... the easy way is through the synaptic package manager in Linux Mint. Wine will require installing Gecko once again, but this should be only other time...

FT277002

Posted 2015-07-31T18:50:11.543

Reputation: 1