https://bugs.kde.org/show_bug.cgi?id=369094

--- Comment #7 from Christoph Cullmann <[email protected]> ---
(In reply to nfxjfg from comment #6)
> > but this is the only simple way to ensure we only open files once and are 
> > able to easily match stuff.
> 
> Interestingly, it doesn't work though. Bind mounts (mount --bind) are not
> handled. If I open a file and open the same file in a bind mounted
> directory, the editor still treats them as different files, and gets
> confused. It even overwrites the changed file without any indication that
> something is wrong...
> 
> According to inotifywait, you still get events on both paths, and
> st_dev/st_ino can be used to uniquely identify a file on a system.

Yeah, you can do all that, but we only identify documents by their URL.
Therefore we let Qt compute the canonical file path and be done.
Naturally there are X complex ways to still have non-unified paths.
But that is for me out of scope,.
Even the st_dev/st_ino is actually no good solution, as this isn't stable if
you start to delete file that are open and create new ones.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to