polybar/polybar-scripts

player-mpris-simple: Permission Denied

FrenzyExists opened this issue · 8 comments

Issue: As an alternative from mpd I decided to try mpris to see the music title and so on at my polybar. However ,for some reason I am getting permission denied from my polybar as seen here:

Screenshot_20200524_101721

P.S. I am kind of a novice in terms of scripting, so I apologize if the solution was too dumb-simple and I couldn't see it.

x70b1 commented

As in setup: run chmod +x ....

It seems that it doesn't work

image

I hit at the terminal as the link suggested:
chmod +x player-mpris-simple.sh

x70b1 commented

What happen if you run the script in a terminal?

Nothing actually, everything seems to run normally, except for the not found message at polybar

This is what I have at the config

[module/player-mpris-simple]
type = custom/script
exec = ~/.config/polybar/scripts/player-mpris-simple.sh
interval = 3
click-left = playerctl previous &
click-right = playerctl next &
click-middle = playerctl play-pause &

Ok, I'm back, somehow for some reason the script is actually working, however, the "Not found" message still persist even if it actually did found the script and the player polybar does respond when I click

x70b1 commented

Are you sure that the path is correct?

Yep, also, just fixed the issue, while debugging, I forgot to uncomment one of the lines from the original script. It works like a charm!

image

Thanks!