.desktop-file for Spotify under Wine

The standard panel of LXDE - http://wiki.lxde.org/en/LXPanel
Locked
Gabbsmo
Posts: 2
Joined: Sun Mar 22, 2009 9:28 am

.desktop-file for Spotify under Wine

Post 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 :/
maces
Posts: 503
Joined: Sat Oct 25, 2008 6:04 pm
Contact:

Re: .desktop-file for Spotify under Wine

Post by maces »

Hi

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

maces
Marty Jack
Posts: 381
Joined: Mon Mar 23, 2009 5:14 am

Re: .desktop-file for Spotify under Wine

Post 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?
Marty Jack
Posts: 381
Joined: Mon Mar 23, 2009 5:14 am

Re: .desktop-file for Spotify under Wine

Post 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
jeevs
Posts: 3
Joined: Tue May 05, 2009 9:30 am

Re: .desktop-file for Spotify under Wine

Post 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 "/"
Locked