geeqie icon indicating copy to clipboard operation
geeqie copied to clipboard

Preserving symlink's target when moving files

Open WojciechMula opened this issue 2 years ago • 0 comments

ISSUE TYPE

  • Feature Request

GEEQIE VERSION

Geeqie 1.6

OS / DISTRIBUTION

Any system supporting symlinks.

SUMMARY

When we move an image that is a symlink that uses a relative path, the symlink path remains intact. As a result, such file becomes inaccessible.

It would be great if geeqie either replaced the target path with an absolute path or (better) try to create a new relative path.

An example of what I mean:

$ mkdir kitten
$ cd kitten
$ ln -s ../DSC_7014.jpg kitten.jpg
$ ls -l
kitten.jpg -> ../DSC_7014.jpg
$ mkdir fav
$ cd fav
# at this point we're moving in geeqie file `kitten.jpg` to subdir `fav`
$ ls -l
kitten.jpg -> ../../DSC_7014.jpg
# or
kitten.jpg -> /home/user/photos/foo/bar/DSC_7014.jpg

WojciechMula avatar Jan 10 '22 20:01 WojciechMula