Type in your question below and we'll check to see what answers we can find...
Loading article...
Submitting...
If you couldn't find any answers in the previous step then we need to post your question in the community and wait for someone to respond. You'll be notified when that happens.
Simply add some detail to your question and refine the title if needed, choose the relevant category, then post.
Before we can post your question we need you to quickly make an account (or sign in if you already have one).
Don't worry - it's quick and painless! Just click below, and once you're logged in we'll bring you right back here and post your question. We'll remember what you've already typed in so you won't have to do it again.
Please see below the most popular frequently asked questions.
Loading article...
Loading faqs...
Please see below the current ongoing issues which are under investigation.
Loading issue...
Loading ongoing issues...
Hey,
KDE is automatically restarting applicatios on login, that were running in the last session and thus, spotify is also restarted. Applications are started with a -sesstion argument, for example:
spotify -session 1020b17c184165000138602432300000023810069_1403993180_490291
currently, spotify then opens an error message box:
I'd suggest to use something like:
#ifdef LINUX
StringList getArgs() {
StringList ret;
for (int i = 0; i < application->arguments().length(), ++i) {
if (application->arguments()[i] != "-sesstion")
++i;
else
ret.append(application->arguments()[i])
}
return ret;
}
#endif
Additionally, you should set Spotify as the message box header. It took me a while to figure out, that spotify was showing this error.
Best Regards
Peter
Spotify Community Mentor and Troubleshooter
Spotify Last.FM Twitter LinkedIn Meet Peter Rock Star Jam 2014
If this post was helpful, please add kudos below!
Hi,
edit: My solution didn't work after all. I just got an "invalid option" error after reboot
My solution to this was to rename spotify binary to spotify.real and substituted the spotify with a script.
#!/bin/bash
if [[ $1 == \-* ]]
then
/opt/spotify/spotify-client/spotify.real
else
/opt/spotify/spotify-client/spotify.real $@
fi
This script should skip all the options starting with "-" but pass through the URLs
ofc. I have to do the renaming and replacement avery time the client updates.
You could make a script that strips the session argument from the command being run. This has been brought up here before but I can't seem to find it, but know there was solutions.
I don't think it's that easy for you, sorry.
Ubuntu also runs xfce4 in some instances and xfce4 is the issue here. It saves a restart command for spotify in the session files at .cache/sessions which makes it put out the error because apparently -session is not a valid option.
Proof: Closing Spotify before restarting makes the issue completely disappear. Also turning off the session save feature on logout helps.
Please consider looking into this, it's most likely just a matter of changing a small thing somewhere in order to not have it save that option in the session files.
This affects Gnome3 and KDE5 as well
Hey there you, Yeah, you! 😁 Welcome - we're glad you joined the Spotify Community! While you here, let's have a fun game and get…