Does someone know how to make this script and other jscript's working in foobar under linux mint? I didn't have sucess with wine?
I managed to make it works in ubuntu.
It is a little bit tricky.
Of course change USER with your username ;-)
first thing is make a new 32bits wine profile for foobar.
Open console and write:
export WINEARCH=win32 && WINEPREFIX=/home/USER/.winefoobar2000 winecfg
This create the profile and open wine configuration.
Install foobar in this profile in portable mode and make sure the path have no spaces or points (when I install it in ~/.foobar2000 I have problem with the data write for several scripts). I install it in ~/bin/foobar2000 and never have any problem.
WINEPREFIX=/home/USER/.winefoobar2000 wine PATHTOFOOBAR2000INSTALFILE.exe
Now open winecfg again and select windows XP version.
Again in the console write
env WINEPREFIX='/home/USER/.winefoobar2000' winetricks
Select default profile, install dll and install the next ones in this order (this is important, don't know why ;-P)
ie8
vcrun2017
msxml3
Close winetricks, open winecfg and change window version to windows 7 again.
Another time I don't know why but with xp version foobar always freeze.
With this the panel works but when you try to open a link gives you a warning and doesn't open the navigator.
For making it open the default browser again:
1. Open Wine Regedit:
env WINEPREFIX='/home/USER/.winefoobar2000' wine regedit
2. Navigate to HKEY_CURRENT_USER (a.k.a HKCU) -> Software -> Wine and look for a key called "WineBrowser", if it does not exist, create it. Under the newly created "WineBrowser" key, create a string called "Browsers" with the following value:
xdg-open,firefox,konqueror,mozilla,netscape,galeon,opera,dillo
Don't worry about the browsers order in the above code. Just make sure "xdg-open" is the first one, as that will make sure that when you click a link in a Wine application, your default native Linux browser will be used to open that link.
3. But we are not done! At this point if you click a link in Wine, you'll get the following error:
err:winebrowser:get_url_from_dde Unabled to retrieve URL from string L"\""
err:winebrowser:wmain Usage: winebrowser URL
To fix this, go to HKEY_CLASSES_ROOT -> http -> shell -> open -> command and edit the data value by adding "%1" at the end of the line, so that it looks like this:
C:\windows\system32\winebrowser.exe -nohome "%1"
Same for https
Close regedit and enjoy.
You can launch foobar from the console from the console with
env WINEPREFIX='/home/USER/.winefoobar2000' wine /home/USER/bin/foobar2000/foobar2000.exe
or create a launcher in /home/USER/.local/share/applications.
Create a file with the name foobar2000.desktop, open in text editor and write something like this:
[Desktop Entry]
Name=foobar2000
GenericName=foobar2000
Comment=Music Player
StartupWMClass=foobar2000.exe
Type=Application
Exec=env WINEPREFIX="/home/USER/.winefoobar2000/" wine Z:\\\\home\\\\USER\\\\bin\\\\foobar2000\\\\foobar2000.exe
Terminal=false
StartupNotify=true
Path=/home/USER/bin/foobar2000
MimeType=audio/basic;audio/vnd.wav;audio/x-wav;audio/x-aiff;audio/ogg;audio/vorbis;audio/x-vorbis+ogg;audio/mpeg;audio/mp4;audio/aac;audio/x-wavpack;application/vnd.apple.mpegurl
Categories=AudioVideo;Audio;Player
Icon=/home/USER/.local/share/icons/foobar2000.png
Note that you need to put a foobar2000 png in /home/USER/.local/share/icons/.
This is only cosmetic.
Save and close.
Make it executable in the permissions tab of propieties.
With this it will display in the shell when you search foobar.
Hope that it works for you too.
The only thing that I can't make it work is the download of artist and album images.
I use foo_discogs for this task.