Hi,
has someone a Bash Script that works when foobar2000 is not installed in wine ?
Portable somewhere on a drive and only wine is used for starting Foobar2000.
In my case i have /media/VolumeD/foobar2000 (Linux path)
I always get Unknown Command Line Parameter because the Z: is not send with the Open with Foobar2000.desktop
All Bash Scripts i have found here are within the Wineprefix directory not outside this.
I'm far from an expert with Bash scripts, but here's the foobar2000.desktop file I eventually created after a bit of research on how to create one that'd work properly using the file manager's right click "open with" and "send to" menus.
[Desktop Entry]
Name=foobar2000
Comment=
Type=Application
Icon=/home/UserName/.local/share/icons/foobar2000.png
Exec=env sh -c "winepath -w -0 %F | WINEPREFIX='/home/UserName/.local/share/wineprefixes/Win64' xargs -0 wine start /Unix '/home/UserName/.local/share/wineprefixes/Win64/drive_c/Program Files/foobar2000/foobar2000.exe'"
StartupWMClass=foobar2000.exe
Categories=AudioVideo;Player;
This should run foobar2000 from /media/VolumeD/foobar2000/ using the default wine prefex.
[Desktop Entry]
Name=foobar2000
Comment=
Type=Application
Icon=/home/UserName/.local/share/icons/foobar2000.png
Exec=env sh -c "winepath -w -0 %F | xargs -0 wine start /Unix '/media/VolumeD/foobar2000/foobar2000.exe'"
StartupWMClass=foobar2000.exe
Categories=AudioVideo;Player;
As a desktop file, if you add it to your applications (shortcuts) folder it should appear in the start menu and should work correctly via your file manager's "open with" menu. For me it's
/home/UserName/.local/share/applications/
Also for me, MX Linux and the Thunar file manager, putting a copy in this folder adds it to the file managers right click "send to" menu.
/usr/share/Thunar/sendto/