1) passing the actual .exe file to wine instead of passing it start.exe which, in turn, is being passed the .lnk file
2) Adding "StartupWMClass=spotify.exe" to match the correct window
As a bonus, setting relevant Categories will let you filter the application correctly in the dash.
Works like a charm for me. You need to run "unity --replace" for an immediate effect the first time round, or log off and in again. I hope this helps someone.
I have the same issue. The workaround I'm using is modifying the relevant desktop files in ~/.local/ share/applicati ons/wine/ Programs as follows:
Original Spotify.desktop:
[Desktop Entry] "/home/ michael/ .wine" wine C:\\\\windows\ \\\command\ \\\start. exe /Unix /home/michael/ .wine/dosdevice s/c:/users/ michael/ Start\\ Menu/Programs/ Spotify. lnk michael/ .wine/dosdevice s/c:/users/ michael/ Application Data/Spotify
Name=Spotify
Exec=env WINEPREFIX=
Type=Application
StartupNotify=true
Path=/home/
Icon=4243_spotify.0
Modified Spotify.desktop:
[Desktop Entry] "/home/ michael/ .wine" wine "C:/users/ michael/ Application Data/Spotify/ spotify. exe" AudioVideo; Audio;Music; Player; spotify. exe michael/ .wine/dosdevice s/c:/users/ michael/ Application Data/Spotify
Name=Spotify
Exec=env WINEPREFIX=
Categories=
Type=Application
StartupNotify=true
StartupWMClass=
Path=/home/
Icon=4243_spotify.0
I think the important bits are:
1) passing the actual .exe file to wine instead of passing it start.exe which, in turn, is being passed the .lnk file =spotify. exe" to match the correct window
2) Adding "StartupWMClass
As a bonus, setting relevant Categories will let you filter the application correctly in the dash.
Works like a charm for me. You need to run "unity --replace" for an immediate effect the first time round, or log off and in again. I hope this helps someone.