Page 1 of 1

.desktop-file for Spotify under Wine

Posted: Sat Apr 18, 2009 1:56 pm
by Gabbsmo
I want a .desktop-file to launch Spotify with under wine. This is my code:

Code: Select all

[Desktop Entry]
Type=Application
Name=Spotify
Exec=wine C:\\Program\\Spotify\\spotify.exe
Terminal=false
Categories=AudioVideo;
"wine C:\\Program\\Spotify\\spotify.exe" works fine from the terminal, but not from the menu :/

Re: .desktop-file for Spotify under Wine

Posted: Sat Apr 18, 2009 7:06 pm
by maces
Hi

Tried with xterm? "xterm -e wine C:\\Program\\Spotify\\spotify.exe".

maces

Re: .desktop-file for Spotify under Wine

Posted: Sun Apr 19, 2009 2:33 am
by Marty Jack
The problem is the \\ don't survive as long as they need to. My first impression is that this is mishandled in menu-cached. Testing indicates that replacing each \\ with \\\\ should serve as a workaround. I will look into how quoting should work, and eventually you might have to change it back if we fix something.

Would you have tried this .desktop file with another desktop (KDE, Gnome, Xfce) and does it work there?

Re: .desktop-file for Spotify under Wine

Posted: Fri Apr 24, 2009 12:31 pm
by Marty Jack
For future reference: Apparently, the quadruple backslash is the proper way to express this. See

https://bugs.launchpad.net/ubuntu/+sour ... bug/335712

Re: .desktop-file for Spotify under Wine

Posted: Mon May 11, 2009 7:08 am
by jeevs
To create a desktop icon for the game SPOTIFY,
create a shell script with the name "spotify.sh" and with the following code.

Code: Select all

cd $HOME/.wine/drive_c/Program\ Files/Spotify
wine spotify.exe

Now create a ".desktop" file on the desktop with the name "spotify.desktop"

Code: Select all

[Desktop Entry]
Type=Application
Name=Sudoku
Exec={Complete Path To}/spotify.sh
Icon={Complete Path To}/Spotify.jpeg
Terminal=false

While specifying the complete path in the ".desktop" file, don't use any shortcuts like "~/" or "$HOME" etc....
They don't work here.
Specify the complete path starting from "/"