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

Use of symbolic link for application support folder #10094

Closed
cyberduck opened this issue Sep 29, 2017 · 6 comments
Closed

Use of symbolic link for application support folder #10094

cyberduck opened this issue Sep 29, 2017 · 6 comments
Assignees
Milestone

Comments

@cyberduck
Copy link
Collaborator

a03e74d created the issue

Cyberduck Version 6.2.6 (26405)
MountainDuck 2.0.2 (8111)
Tested on macOS 10.12.6 and 10.13

I like to share my bookmarks between 3 computers. For this I use ResilioSync (used to be BTSync). The way I do this for all my other apps is, move the config folder to the Sync folder and then create a Symlink in the original spot for it to read from. This works for all other apps but not for Cyberduck/MountainDuck. They refuse to acknowledge the symlink and either hang when launched (Cyberduck) or just show no bookmarks (MountainDuck).

I had "solved" this in 10.12 using Hardlink instead of Symlink - which did work, however now that I am on 10.13 with APFS filesystem, hardlinks are no longer supported and so this is not working again.

Please if you can support the fact that the bookmarks folder might be a Symlink that would be excellent

@cyberduck
Copy link
Collaborator Author

@dkocher commented

I have linked the application support folder to a directory in my home folder with ln -s ~/duck ~/Library/Group\ Containers/G69SCX94XU.duck/Library/Application\ Support/duck and could not reproduce the issue.

@cyberduck
Copy link
Collaborator Author

a03e74d commented

Thanks for looking into this but I think there's an issue still. It may work to symlink the entire "duck" folder however that is not what I am doing (I only want to sync Bookmarks - also it is probably not wise or even viable to sync the whole folder because the mountpoints are also stored there. Not sure what horrible things might happen if it's being used on 2 machines and both have the same bookmark mounted...) So I am only symlinking my "Bookmarks" folder. Here's a repro. I just tested this with MountainDuck 2.0.3(snap)

  1. quit MountainDuck

  2. open Terminal and run these commands

cd "$HOME/Library/Group Containers/G69SCX94XU.duck/Library/Application Support/duck"
mv Bookmarks "$HOME/duck-bookmarks-test"
ln -siv "$HOME/duck-bookmarks-test" Bookmarks
  1. relaunch MountainDuck

no bookarks will be shown...

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Caused by: ch.cyberduck.core.exception.LocalAccessDeniedException{detail='Ordner /Users/dkocher/Library/Group Containers/G69SCX94XU.duck/Library/Application Support/duck/Bookmarks kann nicht angelegt werden', cause='java.nio.file.FileAlreadyExistsException: /Users/dkocher/Library/Group Containers/G69SCX94XU.duck/Library/Application Support/duck/Bookmarks', message='Access denied'}
	at ch.cyberduck.core.Local.mkdir(Local.java:194)
	at ch.cyberduck.core.AbstractFolderHostCollection.load(AbstractFolderHostCollection.java:125)
	at ch.cyberduck.core.BookmarkCollection.load(BookmarkCollection.java:246)

@cyberduck
Copy link
Collaborator Author

@dkocher commented

In bdf7993.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Note that despite the fix this will not work when running the application sandboxed (running from the Mac App Store).

@cyberduck
Copy link
Collaborator Author

a03e74d commented

Just wanted to confirm that this bug is fixed as of MountainDuck 2.0.3 (8407) and Cyberduck 6.2.9 (26659)
Thank you very much!!

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants