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

PICARD-2879: macOS: Extend all paths in filebrowser with /Volumes/ #2440

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

phw
Copy link
Member

@phw phw commented Apr 30, 2024

Summary

  • This is a…
    • Bug fix
    • Feature addition
    • Refactoring
    • Minor / simple change (like a typo)
    • Other
  • Describe this change in 1-2 sentences:

Problem

If the user has selected a starting directory in Opions > User interface that is not under the /Volumes/ path, this starting directory is not being used in the file browser on startup.

Solution

Extend all paths in filebrowser with /Volumes/

This ensures that selected starting directory gets resolved correctly, as the filebrowser only supports paths under /Volumes/, not directly under /. On saving drop the /Volumes/ prefix for paths on the root volume. This gives the nicer shorter paths the user is more familiar with (e.g. /Users/phw/Music instead of the long /Volumes/System/Users/phw/Music).

This ensures that selected starting directory gets resolved correctly,
as the filebrowser only supports paths under /Volumes/, not directly under
/. On saving drop the /Volumes/ prefix for paths on the root volume.
@phw phw requested a review from zas April 30, 2024 06:19
Copy link
Collaborator

@zas zas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@phw phw merged commit 0cf178c into metabrainz:master Apr 30, 2024
41 checks passed
@phw phw deleted the improve-macos-default-dirs branch April 30, 2024 09:37
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