How to reset setting of Wine, avoiding uninstalling all applications in it?
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.
Related videos on Youtube
![Admin](/assets/logo_square_200-5d0d61d6853298bd2a4fe063103715b4daf2819fc21225efa21dfb93e61952ea.png)
Admin
Updated on September 18, 2022Comments
-
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 over 11 yearsI'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 over 11 yearsthe 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 over 11 yearsAs 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 over 11 yearsjust 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 over 11 yearsYou could also try removing foobar and then checking there's no traces of it in
user.reg
andsystem.reg
in~/.wine
before reinstalling it inwine
. 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 over 11 yearsYou 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 over 11 yearsThank 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 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 intoThunar
, but will keep trying.