Skip to content
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

Prefer absolute path resolves #6919

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

smithjd15
Copy link
Contributor

@smithjd15 smithjd15 commented Feb 12, 2021

This patchset is part one of three of a series to improve Clementine's creation and maintenance of (portable) playlists.

Canonical path conversion resolves symlinks and dot-segments, breaking saving of portable relative path playlists. Rectify this by using absolute path resolves everywhere canonical resolves were used priorly. Playlist path resolves are already described as absolute in the playlist pane of the behaviour tab.

This change should be transparent, with the benefits including improved portable playlist library matching, and predictable absolute and relative playlist target paths. In order for the library to start using the absolute paths, the source must be removed and re-added. This will result in the loss of any ratings or play counts not written to file tags.

@smithjd15
Copy link
Contributor Author

This has been verified to resolve the closed #5351, where it's been pointed out that ratings etc. won't work with any path except the one in the library. This is expected to be correct now for a file beyond a symlink, e.g. the path added to the library, whether it contains a symlink or not, can be used to set a rating on a file without the user having to obtain the file path that was actually added to the database or look up the file via the library.

@smithjd15 smithjd15 changed the title Added library paths should be absolute paths, not a canonical representation No longer resolve paths to a canonical representation (Library and playlist parser) Oct 13, 2021
@smithjd15 smithjd15 force-pushed the absoluteLibraryPath branch 2 times, most recently from 89953e1 to ac0e371 Compare January 23, 2022 00:16
@smithjd15 smithjd15 changed the title No longer resolve paths to a canonical representation (Library and playlist parser) Prefer absolute path resolves Jan 23, 2022
@smithjd15 smithjd15 force-pushed the absoluteLibraryPath branch from ac0e371 to 1631d5b Compare March 16, 2022 04:54
@smithjd15 smithjd15 force-pushed the absoluteLibraryPath branch from 1631d5b to 004c4cf Compare March 16, 2022 05:11
@smithjd15
Copy link
Contributor Author

Closes #5356.

@smithjd15
Copy link
Contributor Author

Closes #2299.

@smithjd15 smithjd15 force-pushed the absoluteLibraryPath branch from 4965374 to 6931583 Compare March 25, 2022 16:45
@smithjd15
Copy link
Contributor Author

Closes #5065.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants