Unable to clear document recovery history, user profile persists even after deleting it

I use LO 7.3 on Linux (primarily Ubuntu). On one system, I keep getting a persistent message about document recovery when I open a LO app. I have tried discarding the recovery and it keeps coming back. I have run “Reset entire user profile” in safe mode. I have deleted session config files in ~/.config/libreoffice, and even deleted that entire directory. After doing this, LO opens clean once, and then somehow the deleted profile is restored, complete with document recovery history. I have searched my entire homedir for any other place my profile might be backed up and keep restoring itself and cannot find anything. I have made sure /tmp and /var/tmp don’t have any session temp files. Somehow, my LO profile keeps coming back like a zombie that won’t die. I just want to nuke the LO profile and any backups of it. I don’t care about preserving any document history and don’t have any customizations in place. Can anybody tell me where else to look for this? It’s really annoying and I just want it to go away. I would consider myself an experienced linux user, so I’m not afraid to dig in to it.

Very mysterious.

Did you read Where is the AutoRecovery information saved? - #5 by HughHyatt ?

You may search for lu*.tmp in your doument location.

If you want to make sure where your actually active user profile is located: there are a few lines of code helping with this here.

Thanks for the suggestions. Both of these say the profile should be in ~/.config/libreoffice/4/user. I’ve completely deleted this directory and still the profile is getting restored from somewhere. Searching for tmp files turns up nothing in my homedir or the usual /tmp locations. I agree that it’s mysterious, which is why I’m here looking for advice.

  • There might have happened an unusual installtion, I also use more than one user profile for different purposes, and have more than one LibO version installed or avalable as portable apps. Try the code.

  • The recovery files seem not to be saved to the user profile. I have found some of the lu*.tmp pattern on my system which were “lost/ignored” at different times.

  • If you are sure further investigation is useless: why do you ask?

While an unusual installation is possible, it’s highly unlikely. I’ve only ever installed LO from official ubuntu packages, not from any other source. I don’t believe it has been installed from snap, flatpack, or any other binary platform. Currently running latest patches for distro release 22.04. And the current host I’m running on was freshly installed in January.

After logging in with a new desktop session this morning, the recovery files came back again. I ran the macro code you suggested again and it came back with the same profile path (~/.config/libreoffice/4/user), which I just deleted yesterday. I’m searching my homedir for lu*.tmp files and am not finding any. None are getting left behind in /tmp either.

I don’t believe that further investigation is useless. There has to be an explanation for why this is happening. I don’t believe bits rearrange themselves out of thin air. I’m hoping somebody can suggest where else I can look for where these files may be coming from. I don’t have a backup restore job that is running that would cause this behavior. It’s very weird and I’m hoping to find what the cause is.

I appreciate the suggestions so far, they just haven’t uncovered the root cause yet.

(not even sure what the exact problem is, after all these paragraphs :thinking: )

try --strace & co
Starting LibreOffice Software With Parameters