ardagnir / athame

Full vim for your shell (bash, zsh, gdb, python, etc)
GNU General Public License v3.0
1.62k stars 32 forks source link

Does athame tamper with /tmp/ or X11? #90

Open Aster89 opened 3 years ago

Aster89 commented 3 years ago

I've been facing a pair of strange issues for some month, and they begun together around the time I started using athame, so I have a strong suspect that athame is doing something I don't expect/understand, and I'm writing here to seek for help.

I will describe my discovery process:

Now I'm sure that the content of my .vimrc is relevant, and please, let me know if you want to see it, but the point is: if I reproduce the problem right after booting, by "creating/restoring" my .vimrc, with no Vim session alive except the one handled internally by athame, and with ausearch telling me that Vim has deleted /tmp/.X11-unix/X0, it's easy for me to think that's athame who's doing it.

Since you wrote this program, I think you might have a clue of whether athame can or cannot have this effect (maybe because of a problematic .vimrc, I don't know).

In the meanwhile, I've temporarily disabled athame with export ATHAME_ENABLED=0 to see if the problem persists or not.

Aster89 commented 3 years ago

Setting export ATHAME_ENABLED=0 in my ~/.bashrc has solved the problem. I haven't installed/unistalled anything else since then, so I guess this confirms that it was athame that kept deleting (or triggering the deletion) of those files. I don't know how, though.

ardagnir commented 3 years ago

I doubt athame itself is directly responsible. It sounds like vim is deleting your file because of something in your vimrc. Since athame literally calls vim, it’s going to cause any problems you see from running vim

Aster89 commented 3 years ago

Probably, but that specific behavior (deleting stuff in /tmp/) doesn't seem triggered without athame driving Vim. However, I'll try to keep an eye on whatever straneness I spot, and also to review my Vimrc.