External script editor resets to "open by file extension" every time I open unity

Hello, I got another question. after this I will hopefully never have to ask about any problem again…

When I open unity after closing the editor I need to go to preferences and change the external script editor. I found one other post with the same problem: External Script Editor resetting to default on restart

The fixes that worked for some people didn’t work for me. The only one I didn’t try was the administrator mode because I can’t find a mode like that on mint.

I can remember it wasn’t always like this (only after a day of use?) I hope someone can help me and the people in the other post.

Thanks in advance!

using:
JetBrains Rider 2024.1.2
Unity (2022.3.30f1) LTS
System Info:
Kernel: 5.15.0-107-generic x86_64 bits: 64 compiler: gcc v: 11.4.0 Desktop: Cinnamon 6.0.4
tk: GTK 3.24.33 wm: muffin vt: 7 dm: LightDM 1.30.0 Distro: Linux Mint 21.3 Virginia
base: Ubuntu 22.04 jammy

I’m having the same problem in December 2025. Linux Mint, JetBrains Rider, Unity refuses to save my external editor preference, reverting instead to Visual Studio which I’ve never even installed.