Skip to content

feat(config): add option to regenerate symlinks when mount path changes - #465

Merged
javi11 merged 1 commit into
mainfrom
feat/regenerate-symlinks-on-mount-path-change
Apr 3, 2026
Merged

feat(config): add option to regenerate symlinks when mount path changes#465
javi11 merged 1 commit into
mainfrom
feat/regenerate-symlinks-on-mount-path-change

Conversation

@javi11

@javi11 javi11 commented Apr 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a checkbox above the Save button in the Mount Configuration section that appears when the mount_path field has been changed
  • If ticked, all library symlinks are regenerated after the config saves, updating their targets to point to the new mount path
  • Uses use_import_path: false so stored library paths (symlink locations) are preserved — only the symlink targets are updated

Test plan

  • Change mount path field → checkbox appears
  • Revert mount path to original → checkbox disappears
  • Change path, tick checkbox, save → two success toasts: "Mount configuration saved" + "Symlinks regenerated"
  • Save without checkbox ticked → no regeneration triggered
  • Regeneration failure shows its own error toast without masking the save success

When the user edits the mount path in the Mount Configuration section, a
checkbox now appears above the Save button. If ticked, all library symlinks
are regenerated after the config is saved so their targets point to the new
mount path (preserving stored library paths via use_import_path=false).
@javi11
javi11 merged commit ea9d2ce into main Apr 3, 2026
2 checks passed
@javi11
javi11 deleted the feat/regenerate-symlinks-on-mount-path-change branch April 3, 2026 11:45
yoshitaka420 pushed a commit to yoshitaka420/altmount that referenced this pull request Jun 1, 2026
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.

1 participant