fanglingsu / vimb

Vimb - the vim like browser is a webkit based web browser that behaves like the vimperator plugin for the firefox and usage paradigms from the great editor vim. The goal of vimb is to build a completely keyboard-driven, efficient and pleasurable browsing-experience.
https://fanglingsu.github.io/vimb/
GNU General Public License v3.0
1.35k stars 100 forks source link

Vimb doesn't like symlinks and hardlinks for its working files #770

Open machinedgod opened 2 months ago

machinedgod commented 2 months ago
Version:         3.7.0
WebKit compile:  2.40.2
WebKit run:      2.44.3
GTK compile:     3.24.38
GTK run:         3.24.43
libsoup compile: 3.4.2
libsoup run:     3.4.4
Extension dir:   /usr/lib/vimb

Steps to reproduce

  1. Move any of the bookmarks, closed, queue or other files out of .local/share/vimb directory
  2. Create symlinks to those files inside it
  3. Do any action in Vimb that'd touch those files (for example creating a bookmark)

Vimb will delete/replace the symlink with a normal file.

Expected behaviour

Vimb doen't care about symlinks and just uses file as normal.

Actual behaviour

Vimb seems to delete a file and recreate it.

Note

I tested this with hardlinks too - does exactly the same thing.