Right now, we first create directories like ~/.config/rua/.system with files inside them, and only then try to acquire a unique lock on ~/.config/rua. Instead, it makes much more sense to get the unique lock as early as possible, to avoid concurrent access problems.
Right now, we first create directories like
~/.config/rua/.system
with files inside them, and only then try to acquire a unique lock on~/.config/rua
. Instead, it makes much more sense to get the unique lock as early as possible, to avoid concurrent access problems.Marking as "bug" because it's a very smelly code.