Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

How autostart Spotify minimized on Ubuntu?

How autostart Spotify minimized on Ubuntu?

Hi! I want to have Spotify in my autostart on Ubuntu (which is no problem), but minimized to systray.

I installed "AllTray" in Ubuntu (14.04, 64bit) , wrote a shell script:

 

#!/bin/bash
alltray spotify &
exit 0

 made it executable, but Spotify still starts with maximized Window.

 

Any solution?

 

Thank You very much!

Reply
8 Replies

I provided a solution for this in this thread:

http://community.spotify.com/t5/Help-Desktop-Linux-Mac-and/Start-spotify-minimized-on-linux/td-p/122...
SpotCommander - The most elegant, intuitive, feature-rich & universal remote control for Spotify, exclusive for Linux users!

This solution doesn't work here in ubuntu 14.04 64bit. I tried both shell scripts and another sleep duration (10 instead of 3).

Did you change the window title if not on premium? I'll look into it later today.
SpotCommander - The most elegant, intuitive, feature-rich & universal remote control for Spotify, exclusive for Linux users!

I'm on premium (1st month - trial).

I just tried my script in a clean and fully updated Ubuntu 14-04 64-bit virtual machine, and it works just fine as before. I even added it to Startup Applications and it works great.

 

So:

 

  1. Have you installed wmctrl?
  2. Did you make the script executable?
  3. Are you sure the title of your window is exactly "Spotify Premium - Linux Preview" and nothing else?
  4. How did you make the script run when you log in? I assume you have tried the script from the command line

And paste your current script here.

SpotCommander - The most elegant, intuitive, feature-rich & universal remote control for Spotify, exclusive for Linux users!

1.: Yes

2.: Yes

3.: Yes

4.: in autostart-list: command:

/opt/spotify/spotify-client/spotify.sh

 

Starting the script with terminal minimizes it to systray, as I want.

So I changed the time in the script from 3 to 15 (because 10 did not work before). And then it goes well.

I thought it is going well, but now there is NO SOUND, neither in spotify nor other player.

 

Strange!

I solved the SOUND-Problem by de-install and re-install spotify. Now it's working well.

Except shortcuts for pause/play or next sometimes not working...

Suggested posts