I like spotify a lot, but was bothering to me a lot that I couldn’t open the links in Chrome…
After trying few solutions (for KDE, gnome ), I finally managed to make it work:
First you need to install Spotify in linux
At the console we create this script:
echo '#!/bin/sh' > ~/.browser2spotify
echo 'wine "$HOME/.wine/drive_c/Program Files/Spotify/spotify.exe" /uri "$@"' >> ~/.browser2spotify
chmod 755 ~/.browser2spotify
Then we change few options from gnome to know what to do with the url’s:
gconftool-2 -t string -s /desktop/gnome/url-handlers/spotify/command "/home/${USER}/.browser2spotify %s"
gconftool-2 -s /desktop/gnome/url-handlers/spotify/needs_terminal false -t bool
gconftool-2 -s /desktop/gnome/url-handlers/spotify/enabled true -t bool
Remember to replace the user name in the folder.
That’s all!
To see if it works, try to open this any from this list:
Top 100 2009 PlayList
1. |
I Gotta Feeling by Black Eyed Peas |
|
2. |
Right Round – Amended Album Version by Flo Rida |
|
3. |
Sexy Bitch (Featuring Akon;explicit) by Akon, David Guetta |
|
4. |
Poker Face by Lady Gaga |
|
5. |
Halo by Beyoncé |
|
6. |
Use Somebody by Kings Of Leon |
|
7. |
Boom Boom Pow by Black Eyed Peas |
|
8. |
Ayo Technology by Milow |
|
9. |
When Love Takes Over (Feat.Kelly Rowland) by Kelly Rowland, David Guetta |
|
10. |
Kids by MGMT |
|
11. |
Man In The Mirror by Michael Jackson, Andrae Crouch |
|
12. |
Viva La Vida by Coldplay |
|
13. |
Sex On Fire by Kings Of Leon |
|
14. |
Sweet Dreams by Beyoncé |
|
15. |
If I Were A Boy by Beyoncé |
|
16. |
We Made You – Single Version by Eminem |
|
17. |
21 Guns by Green Day |
|
18. |
Infinity 2008 – Klaas Vocal Edit by Guru Josh Project |
|
19. |
Fix You by Coldplay |
|
20. |
Paper Planes by M.I.A. |
|
21. |
Not Fair by Lily Allen |
|
22. |
Live Your Life – Explicit Album Version by T.I. |
|
23. |
Love Story by Taylor Swift |
|
24. |
Smooth Criminal (Radio Edit) by Michael Jackson |
|
25. |
Losing You by Dead by April |
|
26. |
Beautiful by Akon, Colby O’Donis, Kardinal Offishall |
|
27. |
Hotel Room Service by Pitbull, Jim Jonsin |
|
28. |
LoveGame by Lady Gaga |
|
29. |
Dead And Gone [feat. Justin Timberlake] – Explicit Album Version by T.I. |
|
30. |
Svennebanan by Promoe |
|
31. |
Fire Burning by Sean Kingston, RedOne |
|
32. |
Closer by Kings Of Leon |
|
33. |
Clocks by Coldplay |
|
34. |
Paparazzi by Lady Gaga |
|
35. |
Knock You Down by Kanye West, Keri Hilson, Ne-Yo |
|
36. |
Human by The Killers |
|
37. |
Hot N Cold by Katy Perry |
|
38. |
Eh, Eh (Nothing Else I Can Say) by Lady Gaga |
|
39. |
Mayhem by Lorentz & M.Sakarias |
|
40. |
Jai Ho! (You Are My Destiny) by A.R. Rahman, The Pussycat Dolls, Nicole Scherzinger |
|
41. |
I’m Yours by Jason Mraz |
|
42. |
Black Or White by Michael Jackson |
|
43. |
Heartless by Kanye West |
|
44. |
Beautiful by Eminem |
|
45. |
Fuck You by Lily Allen |
|
46. |
When It Was Good by Flipsyde |
|
47. |
The Scientist by Coldplay |
|
48. |
Time To Pretend by MGMT |
|
49. |
She Wolf by Shakira |
|
50. |
My Life Would Suck Without You by Kelly Clarkson |
|
51. |
Empire State Of Mind [Jay-Z + Alicia Keys] – Explicit Album Version by Jay-Z |
|
52. |
Gotta Be Somebody by Nickelback |
|
53. |
Free Fallin’ – Live at the Nokia Theatre by John Mayer |
|
54. |
Billie Jean – Single Version by Michael Jackson |
|
55. |
Dirty Diana by Michael Jackson |
|
56. |
Rap Das Armas – Lucana Radio Edit by Cidinho & Doca |
|
57. |
Don’t Stop Believin’ by Journey |
|
58. |
Womanizer – Main Version by Britney Spears |
|
59. |
The Girl And The Robot by Röyksopp |
|
60. |
Run This Town [Jay-Z + Rihanna + Kanye West] – Explicit Album Version by Jay-Z |
|
61. |
Love Sex Magic – Main Version by Ciara featuring Justin Timberlake |
|
62. |
Basket Case by Green Day |
|
63. |
Crack A Bottle – Edited Version by Eminem, Dr. Dre, 50 Cent |
|
64. |
The Fear by Lily Allen |
|
65. |
Ambitions by Donkeyboy |
|
66. |
Just Dance by Colby O’Donis, Lady Gaga |
|
67. |
Misery Business by Paramore |
|
68. |
Keep You Much Longer by Akon |
|
69. |
17 år by Veronica Maggio |
|
70. |
Mockingbird by Eminem |
|
71. |
Let It Rock by Kevin Rudolf, Lil Wayne |
|
72. |
In For The Kill by La Roux |
|
73. |
How You Remind Me – LP Mix by Nickelback |
|
74. |
Yellow by Coldplay |
|
75. |
The Kids Aren’t Alright by The Offspring |
|
76. |
Kiss Me Thru The Phone by Soulja Boy Tell`em, Sammie |
|
77. |
Numb by Linkin Park |
|
78. |
Don’t Stop Me Now by Queen |
|
79. |
I Want You Back by Michael Jackson, Jackson 5 |
|
80. |
Sugar – feat. Wynter by Flo Rida |
|
81. |
Bulletproof by La Roux |
|
82. |
Battlefield – Main Version by Jordin Sparks |
|
83. |
Dance With Somebody – Radio Version by Mando Diao |
|
84. |
The Climb by Miley Cyrus |
|
85. |
Smells Like Teen Spirit by Nirvana |
|
86. |
The Boy Does Nothing by Alesha Dixon |
|
87. |
Supernova by Mr Hudson, Kanye West |
|
88. |
Rockstar by Nickelback |
|
89. |
Electric Feel by MGMT |
|
90. |
I Know You Want Me [Calle Ocho] – Radio Edit by Pitbull |
|
91. |
Hurtful by Erik Hassle |
|
92. |
Summer Of ‘69 by Bryan Adams |
|
93. |
Down by Jay Sean, Lil Wayne |
|
94. |
Om du lämnade mig nu by Miss Li, Lars Winnerbäck |
|
95. |
Single Ladies (Put A Ring On It) by Beyoncé |
|
96. |
Evacuate The Dancefloor by Cascada |
|
97. |
The Funeral by Band of Horses |
|
98. |
Bad by Michael Jackson |
|
99. |
Whatever You Like by T.I. |
|
100. |
New Divide by Linkin Park |
List provided thanks to soyplastic.
Related