Bug 224396 - "Link here" should create relative symlinks instead of absolute ones
Summary: "Link here" should create relative symlinks instead of absolute ones
Status: RESOLVED DUPLICATE of bug 143527
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: SVN
Platform: Ubuntu Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-26 22:34 UTC by Nicolas Piguet
Modified: 2014-05-04 17:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Piguet 2010-01-26 22:34:16 UTC
Version:            (using KDE 4.3.2)
Installed from:    Ubuntu Packages

Currently, when moving a file with drag-and-drop in Dolphin and selecting the "link here" option, Dolphin creates absolute symlinks. Relative symlinks are more manageable for a variety of reasons:

- they are mount point independant (important for removable devices or for encrypted partitions that are not always mounted)
- they are resistant to moves (as long as the user moves a common ancestor or the link and the original file)

I do not have any counter examples in mind where an absolute link would be better.

For now a workaround to this is to use 

symlinks -rc .

after having created a bunch of symlinks with the "link here" option.
Comment 1 Peter Penz 2010-01-27 09:30:31 UTC
Thanks for the report, Nicolas.

@David: I've reassigned this to you, as Dolphin uses KonqOperations::doDrop(). I'm not sure whether relative symlinks have drawbacks...
Comment 2 Nathan Shearer 2014-04-25 21:34:08 UTC
If the link method can't be changed from an absolute path to a relative path, then perhaps it could be renamed to "Link Here (Absolute)" and an additional option can be added that is "Link Here (Relative)"
Comment 3 Christoph Feck 2014-05-04 17:36:27 UTC

*** This bug has been marked as a duplicate of bug 143527 ***