librime icon indicating copy to clipboard operation
librime copied to clipboard

Resolve symbolic links with Boost.Filesystem

Open Prcuvu opened this issue 7 years ago • 2 comments

This can be done by is_symlink() and read_symlink(). The only problem is whether it is necessary.

Prcuvu avatar Apr 26 '18 10:04 Prcuvu

As reported in rime/weasel#216, user directory may be placed under a symbolic link to home directory. It may cause deployment failure if the parent symbolic link is not resolved.

Prcuvu avatar Apr 26 '18 10:04 Prcuvu

It's complicated. I cannot create an instant fix. Changes shall be made carefully. While trying to find a resource by file name, path is constructed by concatenating each prefix and the relative path. In some places such path strings are compared, this can be error prone (no sound proof; while I wrote the code I thought it could be dangerous): if one is resolved by following symlink, the prefix will no longer match.

lotem avatar Apr 26 '18 14:04 lotem

No boost fs any more.

eagleoflqj avatar Oct 08 '23 18:10 eagleoflqj