You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm creating an Electron application in Arch. When I run in a console mpc add <path_to_my_file> as a current user, not su, everything is fine.
However, when I use mpc-js, mpc.currentPlaylist.add(<path_to_my_file>) returns {errorCode: 4, errorMessage: "Access denied"} error object.
Some other database commands works fine, mpc connects successfully.
MPD is started as a system-wide service. File is located in a mounted NTFS directory.
It does not depend on whether I build a production or a debug version.
UPD node application without electron rises the same error. I do not understand how to properly use this lib. Local files also do not work.
UPD2 Without additional access right management, Unix sockets work great. So, if MPD is bound to a Unix socket, and I use mpc.connectUnixSocket(), I can call mpc.currentPlayer.add() command then
The text was updated successfully, but these errors were encountered:
I'm creating an Electron application in Arch. When I run in a console
mpc add <path_to_my_file>
as a current user, not su, everything is fine.However, when I use mpc-js,
mpc.currentPlaylist.add(<path_to_my_file>)
returns{errorCode: 4, errorMessage: "Access denied"}
error object.Some other database commands works fine, mpc connects successfully.
MPD is started as a system-wide service. File is located in a mounted NTFS directory.
It does not depend on whether I build a production or a debug version.
UPD node application without electron rises the same error. I do not understand how to properly use this lib. Local files also do not work.
UPD2 Without additional access right management, Unix sockets work great. So, if MPD is bound to a Unix socket, and I use
mpc.connectUnixSocket()
, I can callmpc.currentPlayer.add()
command thenThe text was updated successfully, but these errors were encountered: