Originally Posted by
goodstuff9
But, I was never sure I was putting the 2>/dev/null in the exactly correct spot.
It would go after the command itself, so something like
Code:
${if_match "${execi 3 qdbus org.mpris.MediaPlayer2.Goodvibes /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlaybackStatus 2>/dev/null}" == "Playing"}
It's possible that you'd still get the entry in the log even with the error redirection; I haven't played much with qdbus to know either way.
This page has some information on how output redirection works.
It's possible that rather than interrogating qdbus for results about an object that doesn't exist, you could do something softer with Lua to wait for Good Vibes to announce itself. That's not something I have any experience with, though.