How to reset setting of Wine, avoiding uninstalling all applications in it?

7,514

Solution 1

As we have discussed various things in the comments without success, what might work is to create a new wineprefix and then install and run foobar always from that prefix. That may allow you to continue using foobar without reinstalling wine, as the corrupted settings may be present in the original .wine folder.

Create your wine prefix with:

WINEPREFIX=$HOME/.foobar winecfg

Then you can temporarily export the location to the environment:

export WINEPREFIX=$HOME/.foobar

(see my note below re using export and env)

Then cd to your newly downloaded version of Foobar2000 and run the install:

wine foobar2000_v1.1.17.exe

I had to logout and login before I launched the program, or I experienced some odd errors and heavy disk activity. That was probably my system however.

Now if you have logged out, open terminal and run the export command again and then enter

wine "c:\\Program files\\foobar2000\\foobar2000.exe" 

To alter any settings in this new prefix, you can just run

winecfg

as long as the prefix is exported to the environment as above.


Note: I have specified to export the WINEPREFIX environmental variable above; an equally valid method would be to use env, and often using env is very useful as it does not rely on the variable having already been set with export. The WINEPREFIX specified with env is used for that command-line only, whereas using export means that variable becomes the default environmental variable and thus would have to be unset if a different WINEPREFIX was needed to be used.

Some example usage of env:

env WINEPREFIX=$HOME/.special <wine commands>

You will also have to modify the foobar location in the script I recently discussed in my other answer by adding the following, modified for your system, under the shebang at the top of the script:

export WINEPREFIX=$HOME/.foobar
cd /home/mike/.foobar/drive_c/Program\ Files/foobar2000/

This is definitely one way to get fresh settings without reinstalling wine and removing your .wine folder, and it should make foobar work correctly again, and can be repeated for many different wine programs: see the Wine FAQ.

Solution 2

The problem with the volume control appeared for me, too. I changed lots of audio settings in wine and foobar2000, but nothing worked. Then I remembered, that i changed in the wine settings the windows version from Windows XP to Windows 7. Resetting it to Windows XP solved the problem for me.

Share:
7,514

Related videos on Youtube

Admin
Author by

Admin

Updated on September 18, 2022

Comments

  • Admin
    Admin almost 2 years

    Foobar2000 volume slider stopped working in Wine

    Sound is good but volume cannot be changed from the player's slider anymore.

    Is there a setting in Wine that might have entailed this?

    I have tested [Vineyard][1] (also) and then gave it up on which occasion some setting in Wine might have been altered but cannot see which.

    Edit: This affects the main installation (v.1.1.15) made in Wine, and also portable installations of the same version (as well as portable installations of v.1.1.14 and 1.1.17b that I tested) but does not affect older versions like 1.0.3.

    After testing more versions, it seems that the newest version without this problem is 1.1. (That is, before the version that changed the classic white-on-black Foobar2000 icon with the new white one.)

    • Admin
      Admin over 11 years
      I'm using the most recent stable version downloaded from the site as yesterday (1.1.17) and the volume slider works fine in Wine- have you tried this version for your main installation?.
    • Admin
      Admin over 11 years
      the issue is simply related to wine, i guess i should reinstall wine but do not feel like as i have too many apps in there. as i said, FBk2 v.1.1 works fine, so it's just a curiosity, but one that i need to solve anyway for i'll keep using the player.. the problems affects the player according to version not to whether it's main installation or portable. but i'll keep trying what you said. i was thinking about an answer related to a setting in wine
    • Admin
      Admin over 11 years
      As for Wine settings, you could try a different Windows compatibility mode. Go to wine > configure Wine > applications > add application and specify a profile for Foobar that uses a different emulation of Windows from the drop down menu like Windows XP, Windows 7, etc. That might be worth trying and can sometimes make a difference for Wine programs.
    • Admin
      Admin over 11 years
      just tried that XP/WIN7/8 in 1.1.7 final, no chance for now. i guess it's more hidden in wine: is there a reset setting of wine, as alternative to full re-install?
    • Admin
      Admin over 11 years
      You could also try removing foobar and then checking there's no traces of it in user.reg and system.reg in ~/.wine before reinstalling it in wine. I'm not sure how to do a general reset of wine settings, although removing wine will still leave the .wine folder, so reinstall may not help if the setting is somewhere in that folder, such as in the simulated Windows registry, as mentioned above.
    • Admin
      Admin over 11 years
      You might be able to use a wineprefix- ie install foobar to a separate wineprefix and thereby have fresh settings- I'll explain in an answer shortly
  • AntonH
    AntonH over 11 years
    Thank you for your informative answer, as well as for the other one concerning Thunar custom actions. (By the way, as you seem very knowledgable regarding Wine, could you have a look at this question? (askubuntu.com/q/219650/47206) But sorrily, this here was not a solution for me, I guess thing were more messed up than I thought.The volume would not work even after all the procedure recommended here and I had to finally reinstall Wine: which solved it. But your answer must stay and be rewarded and therefore I'll change the question's title. Or you could edit it if you have the time.
  • AntonH
    AntonH over 11 years
    @cipricus Thanks- I have had a look at the other question, but I haven't been able to pass any command-line options to searchmonkey and get it properly integrated into Thunar, but will keep trying.