-
Notifications
You must be signed in to change notification settings - Fork 687
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
Symbolic link handling in paths is inconsistent. #5356
Comments
I think this is a duplicate of Issue #2299 (going back to Clementine 1.0.1). |
Same issue applies to imported .m3u files. Even though an .m3u is referencing something in the library, using a relative path, it imports as a new file using an absolute path (realpath). This means ratings do not show and can not be set. |
I should also note that if you try and workaround the issue adding the realpath roots to the library in Preferences, you'll just end up with duplication. This should not happen either. |
A working workaround is to use bind filesystem instead of symlinks. |
Except that everybody can make a symbolic link, not a mount. And when source dir is a network automount, a bind is not desirable, preventing automount to do its job (I think). |
Agreed. The library realpath part of this makes playlist creation for consumption in other players more difficult than it should be. Edit: Pull request (patch avoiding canonical path resolving for added library paths) #6919 |
Before posting
Please follow the steps below and check the boxes with [x] once you did the step.
System information
Please provide information about your system and the version of Clementine used.
Expected behaviour / actual behaviour
Currently, Clementine is inconsistent in it's handling of symbolic links in paths. When adding a path to the Library, Clementine will canonicalize the path (it's internally doing the equivalent of
realpath
), thus eliminating all symbolic links in it. However, when adding songs to a playlist from the file tab, or by using the command line, or by drag-and-drop from another application, it does not resolve symbolic links. The inconsistency can cause significant confusion, as well as undesirable side effects (see #5351 for example).At an absolute minimum, this handling needs to be made consistent (which would avoid things like #5351).
ideally, we shouldn't be canonicalizing the paths that are added to the Library, as this breaks one of the more common use-cases for symbolic links (redirecting things such that you can trivially change the redirection in one place, instead of having to go through numerous applications to do so), and we should just be trusting the VFS layer to resolve things for us properly.
The text was updated successfully, but these errors were encountered: