mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 11:01:54 +00:00
e25789893d
Closes #22607 Symlinks can be absolute or relative. When using [stow](https://www.gnu.org/software/stow/) to manage dotfiles, it creates relative symlinks to the target files. For example: - Original file: `/home/tims/dotfiles/zed/setting.json` - Symlink path: `/home/tims/.config/zed/setting.json` - Target path (relative to symlink): `../../dotfiles/zed/setting.json` The issue is that you can’t watch the symlink path because it’s relative and doesn't include the base path it is relative to. This PR fixes that by converting relative symlink paths to absolute paths. - Absolute path (after parent join): `/home/tims/.config/zed/../../dotfiles/zed/setting.json` (This works) - Canonicalized path (from absolute path): `/home/tims/dotfiles/zed/setting.json` (This works too, just more cleaner) Release Notes: - Fix issue where items on the Welcome page could not be toggled on Linux when using Stow to manage dotfiles |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
LICENSE-GPL |