! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
[enh] Allow the creation of hard links
Status:
RESOLVED: MOVED
Severity:
enhancement

Comments

Description Claire1990 2019-05-15 21:08:55 CEST
Problem: When files in the home folder are moved to another/sub-folder, the shortcuts on the desktop break because they point to the destination, not to the file.

In Windows, you can move the origin file wherever you want, and the shortcut on the desktop will work forever. 

Please fix.

More info:

/user/file1   -------------------->    /user/New Folder/file1 
/desktop/shortcut_file1 ----->   (broken link)

How to reproduce: 
- make file in a folder
- make shortcut (symlink?)
- move initial file into another folder

- now shortcut will break because it misses the file in its original destination


What was expected: 
- that the shortcut still works, even after moving the original file
Comment 1 Andre Miranda editbugs 2019-05-16 02:58:21 CEST
In Linux, that's how soft link are supposed to behave. If you want the same behavior from Windows, then you need hard links (google: symlink soft vs hard).
AFAICT other file managers create soft links by default, not sure if and how they support the creation of hard links.
Comment 2 Claire1990 2019-05-16 07:24:17 CEST
(In reply to Andre Miranda from comment #1)
> In Linux, that's how soft link are supposed to behave. If you want the same
> behavior from Windows, then you need hard links (google: symlink soft vs
> hard).
> AFAICT other file managers create soft links by default, not sure if and how
> they support the creation of hard links.

Thanks.

Any chance that the default behaviour could be made into a toggle in settings somewhere?
Comment 3 Theo Linkspfeifer editbugs 2019-05-16 11:54:47 CEST
A shortcut in the Windows world is like a soft link which tracks its target. Deleting the target will break the shortcut, but a hard link will still point to the file in the file system.

Other than that, you can easily create a Thunar custom action and use the command "ln %F ~/Desktop" to create hard links.

https://docs.xfce.org/xfce/thunar/custom-actions


Closed Nautilus bug report: https://bugzilla.gnome.org/show_bug.cgi?id=317268
Comment 4 Andre Miranda editbugs 2019-05-16 23:57:14 CEST
Marking the bug as an enhancement.
I'm not really interested in supporting hard links, but I'm not against this as long as UI/UX-wise it's simple.
Comment 5 Git Bot editbugs 2020-05-26 23:42:50 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/thunar/-/issues/241.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #15401

Reported by:
Claire1990
Reported on: 2019-05-15
Last modified on: 2020-05-26

People

Assignee:
Xfce Bug Triage
CC List:
2 users

Version

Attachments

Additional information