Zim

updating a page replaces a unix soft link with a real file

Bug #1335145 reported by Josef Dalcolmo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Won't Fix
Low
Unassigned

Bug Description

zim 0.60, python 2.7.5 on xubuntu

if one places a soft link instead of a real file as a page into a zim notebook,
and then makes any changes to the page,
the soft link gets replaced (overwritten) by a real file,
instead of overwriting the file where the symlink points to,
thereby breaking the link to the original file, which remains unchanged.

This is unexpected behavior.
It may sometimes be convenient to share pages between different notebooks,
for example, for consolidating the "todo" lists of several projects into one (global "todo") notebook.
As a workaround one can use hard links for this, which I find less appealing.

Tags: integration
Revision history for this message
Josef Dalcolmo (josef-dalcolmo) wrote :

I just realized, the same applies to hard links (the link is replaced by a new file on writing), so the workaround does not work.

Changed in zim:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

The "replace on write" is a strategy to ensure writing is atomic.

I believe linking folders should work, but linking files is for me an advanced usage that I do not see as something that is expected to work this way.

Changed in zim:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.