altdesktop / playerctl

🎧 mpris media player command-line controller for vlc, mpv, RhythmBox, web browsers, cmus, mpd, spotify and others.
GNU Lesser General Public License v3.0
2.43k stars 79 forks source link

"No players found" when run from terminal, but works from polybar #237

Closed juacq97 closed 3 years ago

juacq97 commented 3 years ago

Hi! I'm using a polybar module to show the information from spotify using playerctl and works perfect (well, it shows the name of youtube videos and music from kdeconnect too, but it's fine). Now I want to write a conky to show the name and artist of the songs, but playerctl says "No player found". I ran playerctl from the terminal and receive the same message, though I'm runing right now the spotify module. It happens with all the players (firefox and kdeconnect), the terminal says "No player found" and the polybar module shows the information just fine. Any idea why this happens? Thanks!! playerctl

acrisci commented 3 years ago

Read the troubleshooting section of the readme. This is most often a problem of some environment variables not being set by the session manager.

juacq97 commented 3 years ago

I did it without success. I'm trying plasma 5 right now lauched from sddm to check if is something related to minimal window managers and xinit (isn't the only reason though). All the plasma widgets related to music works, and kdeconnect shows the song playing in the pc, but playerctl still says "no player found". I'm using arch linux and is up to date.