-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] print absolute path to file #64
Comments
What would it take to implement this? I see that I assume that the URI may be http:// or refer to a file on another server.
|
One can use the |
According to the
According to the
Does this mean that mpd can only have one music directory and if the URI doesn't contain |
That |
Turns out the mpd has the following check: /**
* Is this client running on the same machine, connected with
* a local (UNIX domain) socket?
*/
bool IsLocal() const noexcept {
return uid >= 0;
} Maybe this check should be loosened to allow localhost? Otherwise it's impossible to implement absolute filepaths on Windows and Unix clients that don't use Unix sockets. |
Clients should prefer local sockets on all operating systems where they are available. It's the default for all clients using libmpdclient (unless they override libmpdclient's defaults). |
You say prefer, but it seems like unix sockets are a hard requirement instead. The loopback device is considered to be local as well by other projects (e.g. authorization in postgresql is handled differently in that case). I created a patch for mpc to support unix sockets under Windows, since they've been supported for a while now. But I can't even get mpd to compile under Fedora and therefore cannot test it, so I benched it. |
Not true, I think you misunderstood how that works. PostgreSQL actually behaves very similar to MPD: connections on local sockets (UNIX domani sockets, not loopback TCP) have different authorization default settings, because on local sockets, the client user id can be determined, but that cannot be done on loopback TCP sockets. |
See the
It seems like there's no interest in supporting this, so I'm dropping this feature. |
Wow, you're right, Anyway, PostgreSQL is not setting a good example here. It's just bad. "Look at PostgreSQL" is not a convincing argument. On the other hand, MPD is not a database server and the data transferred over its protocol is less sensitive. Certainly an option could be added that allows users to make MPD trust clients on loopback TCP connections (or on certain custom IP ranges). |
Using the
%file%
argument for the--format
option prints out the path of the music file relative to the mpd music directory, as a user I'd like an option to print the absolute path of the music file.example
~/D/Music/Alice In Chains/[1992] Dirt (Original Version)/13 - Would.mp3
instead ofAlice In Chains/[1992] Dirt (Original Version)/13 - Would.mp3
The text was updated successfully, but these errors were encountered: