Skip to content

currentPlayer.add rises "Access denied" error #4

@dmytro-shchurov

Description

@dmytro-shchurov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions